commit
This commit is contained in:
@@ -419,6 +419,28 @@ export default {
|
||||
this.qbfsForm.jgUserId = idList;
|
||||
this.qbfsForm.jgUser = nameList;
|
||||
},
|
||||
/**
|
||||
* @Description: 点击下载
|
||||
*/
|
||||
downloadFile(attId) {
|
||||
if (attId != null && attId !== "") {
|
||||
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
||||
} else {
|
||||
this.$message.error("请选择要下载的文件");
|
||||
}
|
||||
},
|
||||
downloadFileByWater(attId, fileSuffix) {
|
||||
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
|
||||
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
|
||||
this.$message.error("水印下载仅支持PDF,pdf格式文件");
|
||||
} else {
|
||||
if (attId != null && attId !== "") {
|
||||
window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId;
|
||||
} else {
|
||||
this.$message.error("请选择要下载的文件");
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
listNoDataText() {
|
||||
|
||||
@@ -404,6 +404,28 @@ export default {
|
||||
this.processStep = window.URL.createObjectURL(res.data)
|
||||
})
|
||||
},
|
||||
/**
|
||||
* @Description: 点击下载
|
||||
*/
|
||||
downloadFile(attId) {
|
||||
if (attId != null && attId !== "") {
|
||||
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
||||
} else {
|
||||
this.$message.error("请选择要下载的文件");
|
||||
}
|
||||
},
|
||||
downloadFileByWater(attId, fileSuffix) {
|
||||
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
|
||||
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
|
||||
this.$message.error("水印下载仅支持PDF,pdf格式文件");
|
||||
} else {
|
||||
if (attId != null && attId !== "") {
|
||||
window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId;
|
||||
} else {
|
||||
this.$message.error("请选择要下载的文件");
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
listNoDataText() {
|
||||
|
||||
@@ -63,6 +63,16 @@
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="下一步状态" prop="nextStatus" class="add-form-item ">
|
||||
<el-select v-model="qbfsForm.nextStatus" placeholder="请选择下一步状态">
|
||||
<el-option
|
||||
v-for="item in associationOptions"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="被代替企标编号" prop="replacedNumber" class="add-form-item form-item-disabled">
|
||||
@@ -119,6 +129,8 @@
|
||||
暂无数据
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item class="add-form-item ">
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="工作组成员" prop="jgUser" class="add-form-item form-item-disabled">-->
|
||||
<!-- <el-input-->
|
||||
<!-- v-model="qbfsForm.jgUser"-->
|
||||
@@ -126,23 +138,13 @@
|
||||
<!-- clearable-->
|
||||
<!-- ></el-input>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="下一步状态" prop="nextStatus" class="add-form-item ">-->
|
||||
<!-- <el-select v-model="qbfsForm.nextStatus" placeholder="请选择下一步状态">-->
|
||||
<!-- <el-option-->
|
||||
<!-- v-for="item in associationOptions"-->
|
||||
<!-- :key="item.value"-->
|
||||
<!-- :label="item.label"-->
|
||||
<!-- :value="item.value">-->
|
||||
<!-- </el-option>-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
</el-form>
|
||||
<el-button style="width: 100%" :icon="foldFormFlag ? 'el-icon-caret-top' : 'el-icon-caret-bottom'"
|
||||
@click="foldForm">{{ foldFormFlag ? "隐藏基础信息" : "展开基础信息" }}
|
||||
</el-button>
|
||||
@click="foldForm">{{ foldFormFlag ? "隐藏基础信息" : "展开基础信息" }}
|
||||
</el-button>
|
||||
<process-title>
|
||||
<template slot="title">审核信息</template>
|
||||
</process-title>
|
||||
@@ -159,12 +161,12 @@
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="issueTime"
|
||||
prop="opinion"
|
||||
align="center"
|
||||
label="审核状态">
|
||||
label="审核意见">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="XCXSSRQ"
|
||||
prop="people"
|
||||
align="center"
|
||||
label="审核人">
|
||||
</el-table-column>
|
||||
@@ -283,42 +285,42 @@ import { changeAssigneeNew, inboundLiaisonDetail, saveTaskFirst } from "api/proc
|
||||
|
||||
export default {
|
||||
name: "qbfsStep4",
|
||||
components:{
|
||||
components: {
|
||||
ProcessHeader,
|
||||
ProcessFooter,
|
||||
ProcessTitle
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
active: '1',
|
||||
active: "1",
|
||||
isTransfer: false,
|
||||
isSubmit: false,
|
||||
saveLoading: false,
|
||||
drawerModal: false,
|
||||
drawerTitle: '',
|
||||
drawerTitle: "",
|
||||
nodeList: [],
|
||||
fileList: [],
|
||||
commentText: '',
|
||||
commentText: "",
|
||||
dataList: [],
|
||||
detailData: [],
|
||||
loading: false,
|
||||
foldFormFlag: true,
|
||||
qbfsForm:{
|
||||
entNumber: '',
|
||||
cnName: '',
|
||||
enName: '',
|
||||
entCategory: '',
|
||||
replaceNumber: '',
|
||||
replacedNumber: '',
|
||||
releaseDate: '',
|
||||
implementDate: '',
|
||||
reviewDate: '',
|
||||
nextStatus: '',
|
||||
qbfsForm: {
|
||||
entNumber: "",
|
||||
cnName: "",
|
||||
enName: "",
|
||||
entCategory: "",
|
||||
replaceNumber: "",
|
||||
replacedNumber: "",
|
||||
releaseDate: "",
|
||||
implementDate: "",
|
||||
reviewDate: "",
|
||||
nextStatus: ""
|
||||
},
|
||||
formRules: {
|
||||
nextStatus: [
|
||||
{required: true, message: "请选择下一步状态", trigger: "change"}
|
||||
],
|
||||
{ required: true, message: "请选择下一步状态", trigger: "change" }
|
||||
]
|
||||
},
|
||||
associationOptions: [{
|
||||
value: "修订",
|
||||
@@ -330,13 +332,13 @@ export default {
|
||||
value: "有效",
|
||||
label: "有效"
|
||||
}]
|
||||
}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.processTable()
|
||||
this.getData()
|
||||
this.processTable();
|
||||
this.getData();
|
||||
},
|
||||
methods:{
|
||||
methods: {
|
||||
processTable() {
|
||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||
prcNum: this.$route.query.prcNum,
|
||||
@@ -346,50 +348,81 @@ export default {
|
||||
loading: "loading",
|
||||
_this: this
|
||||
}, res => {
|
||||
this.detailData = res
|
||||
this.detailData = res;
|
||||
}, e => {
|
||||
})
|
||||
});
|
||||
},
|
||||
getData() {
|
||||
return new Promise((resolve, reject) => {
|
||||
inboundLiaisonDetail({
|
||||
taskIds: this.$route.query.taskIds,
|
||||
pId: this.$route.query.prcId,
|
||||
pId: this.$route.query.prcId
|
||||
}).then(res => {
|
||||
if (res) {
|
||||
const processForm = JSON.parse(res.mesg)
|
||||
this.getFormFieldList(processForm)
|
||||
const processForm = JSON.parse(res.mesg);
|
||||
this.getFormFieldList(processForm);
|
||||
}
|
||||
}).catch(e => {
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
},
|
||||
/**
|
||||
* @description: 动态表单读取
|
||||
*/
|
||||
getFormFieldList (item) {
|
||||
console.log(item);
|
||||
getFormFieldList(item) {
|
||||
this.$nextTick(() => {
|
||||
this.qbfsForm = JSON.parse(JSON.stringify(item))
|
||||
})
|
||||
this.qbfsForm = JSON.parse(JSON.stringify(item));
|
||||
let res = item.res ? item.res.substring(1, item.res.lastIndexOf("]")) : "";
|
||||
res = res.split(",");
|
||||
this.dataList = [];
|
||||
res.forEach(item => {
|
||||
this.dataList.push({
|
||||
opinion: item.split("-")[1],
|
||||
people: item.split("-")[0]
|
||||
});
|
||||
});
|
||||
let list = [];
|
||||
this.dataList.forEach(item => {
|
||||
list.push(item.opinion);
|
||||
this.findMost(list);
|
||||
});
|
||||
|
||||
});
|
||||
},
|
||||
findMost(arr) {
|
||||
if (!arr.length) return;
|
||||
if (arr.length === 1) return 1;
|
||||
let res = {};
|
||||
let maxName, maxNum = 0;
|
||||
// 遍历数组
|
||||
arr.forEach((item) => {
|
||||
res[item] ? res[item] += 1 : res[item] = 1;
|
||||
if (res[item] > maxNum) {
|
||||
maxName = item;
|
||||
maxNum = res[item];
|
||||
}
|
||||
});
|
||||
this.qbfsForm.nextStatus = maxName
|
||||
// return "出现次数最多的元素为:" + maxName + ", 出现次数为:" + maxNum;
|
||||
},
|
||||
//流程提交
|
||||
handleSubmit(){
|
||||
this.isSubmit = true
|
||||
this.qbfsForm.commentText = this.commentText
|
||||
handleSubmit() {
|
||||
this.isSubmit = true;
|
||||
this.qbfsForm.commentText = this.commentText;
|
||||
this.qbfsForm.dataList = this.dataList;
|
||||
let json = JSON.stringify(this.qbfsForm);
|
||||
this.$http.post('lawss/activiti/completeTask', {
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
json: json,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.$router.push('/processCenter')
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.isSubmit = false;
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
@@ -401,52 +434,74 @@ export default {
|
||||
this.foldFormFlag = !this.foldFormFlag;
|
||||
},
|
||||
//转办事件
|
||||
handleTransfer(){
|
||||
this.drawerModal = true
|
||||
this.drawerTitle = '转办处理人'
|
||||
this.selectPeople = row
|
||||
handleTransfer() {
|
||||
this.drawerModal = true;
|
||||
this.drawerTitle = "转办处理人";
|
||||
this.selectPeople = row;
|
||||
},
|
||||
//确认转办
|
||||
checkedRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
checkedRole(data) {
|
||||
this.assigneeNewLoading = true;
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
this.isTransfer = false;
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
this.drawerModal = false;
|
||||
this.$message.success("调整成功");
|
||||
this.$router.push("/processCenter");
|
||||
this.processNum()
|
||||
this.processNum();
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.$message.warning(res.message);
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
// 请求转换流程图
|
||||
processNum (row) {
|
||||
processNum(row) {
|
||||
axios.request({
|
||||
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
||||
responseType: 'blob',
|
||||
method: 'get',
|
||||
url: "/api/lawss/activiti/getImg?_t=" + new Date().getTime(),
|
||||
responseType: "blob",
|
||||
method: "get",
|
||||
params: {
|
||||
prcNum: this.$route.query.prcNum
|
||||
}
|
||||
}).then(res => {
|
||||
// let blob = new Blob([res.data], {type: 'image/jpg'})
|
||||
// let url = window.URL.createObjectURL(res.data)
|
||||
this.processStep = window.URL.createObjectURL(res.data)
|
||||
})
|
||||
this.processStep = window.URL.createObjectURL(res.data);
|
||||
});
|
||||
},
|
||||
/**
|
||||
* @Description: 点击下载
|
||||
*/
|
||||
downloadFile(attId) {
|
||||
if (attId != null && attId !== "") {
|
||||
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
|
||||
} else {
|
||||
this.$message.error("请选择要下载的文件");
|
||||
}
|
||||
},
|
||||
downloadFileByWater(attId, fileSuffix) {
|
||||
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
|
||||
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
|
||||
this.$message.error("水印下载仅支持PDF,pdf格式文件");
|
||||
} else {
|
||||
if (attId != null && attId !== "") {
|
||||
window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId;
|
||||
} else {
|
||||
this.$message.error("请选择要下载的文件");
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
listNoDataText() {
|
||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user