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