Merge branch 'develop' into 'test'

Develop

See merge request !61
This commit is contained in:
王夏晖
2021-08-06 07:43:08 +00:00
14 changed files with 144 additions and 51 deletions
+6 -3
View File
@@ -50,7 +50,10 @@
<el-table-column <el-table-column
label="链接"> label="链接">
<template slot-scope="scope" > <template slot-scope="scope" >
<span @click="linkto(scope.row.url)" style="color: #0c91e5;cursor: pointer;text-decoration: underline">{{ scope.row.url }}</span> <span v-if="scope.row.url.slice(0,7) === 'http://'" @click="linkto(scope.row.url)" style="color: #0c91e5;cursor: pointer;text-decoration: underline">
{{ scope.row.url }}
</span>
<span v-else @click="linkto('http://' + scope.row.url)" style="color: #0c91e5;cursor: pointer;text-decoration: underline">{{ scope.row.url }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -92,8 +95,8 @@
</el-form-item> </el-form-item>
<el-form-item label="链接" prop="url" label-width="150px" class="add-form-item"> <el-form-item label="链接" prop="url" label-width="150px" class="add-form-item">
<el-input v-model="sarStandardsInfoEO.url" <el-input v-model="sarStandardsInfoEO.url"
placeholder="请输入链接" placeholder="请输入链接">
clearable></el-input> </el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="demo-drawer-footer"> <span slot="footer" class="demo-drawer-footer">
@@ -45,23 +45,23 @@
v-model="form.modelName" v-model="form.modelName"
clearable clearable
></el-input> ></el-input>
<!-- <div v-if="form.modelName" @click="fileUpload" class="fileClass">--> <div v-if="form.modelName" @click="fileUpload" class="fileClass">
<!-- {{ form.modelName }}--> {{ form.modelName }}
<!-- </div>--> </div>
<!-- <div v-else>--> <div v-else>
<!-- <el-button--> <el-button
<!-- type="primary"--> type="primary"
<!-- class="common-button-primary"--> class="common-button-primary"
<!-- @click="fileUpload"--> @click="fileUpload"
<!-- size="mini">--> size="mini">
<!-- 点击上传--> 点击上传
<!-- </el-button>-->
<el-button type="primary" @click="fileUpload">
<i class="el-icon-upload el-icon--right"></i>
{{isFileUploadStr}}
</el-button> </el-button>
<!-- </div>-->
<!-- <el-button type="primary" @click="fileUpload">-->
<!-- <i class="el-icon-upload el-icon&#45;&#45;right"></i>-->
<!-- {{isFileUploadStr}}-->
<!-- </el-button>-->
</div>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@@ -175,7 +175,6 @@
<el-dialog width='400px' :visible.sync="fileMadel" title="上传文件"> <el-dialog width='400px' :visible.sync="fileMadel" title="上传文件">
<el-upload <el-upload
class="upload-demo" class="upload-demo"
multiple
drag drag
:action="fileUrl" :action="fileUrl"
ref="importfile" ref="importfile"
@@ -206,7 +205,7 @@ export default {
name: "bzdyStep1", name: "bzdyStep1",
data() { data() {
return { return {
isFileUploadStr:'点击上传', // isFileUploadStr:'点击上传',
progressType: false, progressType: false,
loadProgress: 0, loadProgress: 0,
commentText: '', commentText: '',
@@ -356,8 +355,8 @@ export default {
// 导入标准数据成功后执行 // 导入标准数据成功后执行
importFileSuccess (response, file) { importFileSuccess (response, file) {
if (response.ok) { if (response.ok) {
this.isFileUploadStr='点击查看已上传文件'; // this.isFileUploadStr='点击查看已上传文件';
this.fileMadel = true; this.fileMadel = false;
this.loadProgress = 0 this.loadProgress = 0
this.progressType = false this.progressType = false
this.form.model = response.data.id this.form.model = response.data.id
@@ -329,7 +329,7 @@
this.form.title = data.title this.form.title = data.title
this.form.date = data.date this.form.date = data.date
this.json = data this.json = data
this.tableData = data.responUserListMap this.tableData = data.responUserList
this.form.hzfileId = data.hzfileId this.form.hzfileId = data.hzfileId
this.form.hzfileName = data.hzfileName this.form.hzfileName = data.hzfileName
}).catch(e => { }).catch(e => {
@@ -344,7 +344,7 @@
this.form.title = data.title this.form.title = data.title
this.form.date = data.date this.form.date = data.date
this.json = data this.json = data
this.tableData = data.responUserListMap this.tableData = data.responUserList
this.form.hzfileName = data.hzfileName this.form.hzfileName = data.hzfileName
this.form.hzfileId = data.hzfileId this.form.hzfileId = data.hzfileId
}).catch(e => { }).catch(e => {
@@ -344,7 +344,7 @@
this.form.title = data.title this.form.title = data.title
this.form.date = data.date this.form.date = data.date
this.json = data this.json = data
this.tableData = data.responUserListMap this.tableData = data.responUserList
this.form.hzfileName = data.hzfileName this.form.hzfileName = data.hzfileName
this.form.hzfileId = data.hzfileId this.form.hzfileId = data.hzfileId
}).catch(e => { }).catch(e => {
@@ -344,7 +344,7 @@
this.form.title = data.title this.form.title = data.title
this.form.date = data.date this.form.date = data.date
this.json = data this.json = data
this.tableData = data.responUserListMap this.tableData = data.responUserList
this.form.hzfileName = data.hzfileName this.form.hzfileName = data.hzfileName
this.form.hzfileId = data.hzfileId this.form.hzfileId = data.hzfileId
}).catch(e => { }).catch(e => {
@@ -344,7 +344,7 @@
this.form.title = data.title this.form.title = data.title
this.form.date = data.date this.form.date = data.date
this.json = data this.json = data
this.tableData = data.responUserListMap this.tableData = data.responUserList
this.form.hzfileName = data.hzfileName this.form.hzfileName = data.hzfileName
this.form.hzfileId = data.hzfileId this.form.hzfileId = data.hzfileId
}).catch(e => { }).catch(e => {
@@ -37,18 +37,40 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="附件" prop="modelName" class="add-form-item form-item-disabled"> <!-- <el-form-item label="附件" prop="modelName" class="add-form-item form-item-disabled">-->
<div class="file-box" v-if="listForm.model"> <!-- <div class="file-box" v-if="listForm.model">-->
<p> {{ listForm.modelName }} <!-- <p> {{ listForm.modelName }}-->
<!-- <i-->
<!-- title="下载"-->
<!-- @click="downloadFile(listForm.model)"-->
<!-- class="icon-download"-->
<!-- v-btn-permission="''"-->
<!-- />-->
<!-- <i-->
<!-- title="下载带水印"-->
<!-- @click="downloadFileByWater(listForm.model,listForm.modelName)"-->
<!-- class="icon-download2"-->
<!-- v-btn-permission="''"-->
<!-- />-->
<!-- </p>-->
<!-- </div>-->
<!-- <div v-else>-->
<!-- 暂无数据-->
<!-- </div>-->
<!-- </el-form-item>-->
<el-form-item label="附件" prop="fileName" class="add-form-item form-item-disabled">
<div class="file-box" v-if="fileList.length > 0">
<p v-for="item in fileList"
:key="item.id"> {{ item.name }}
<i <i
title="下载" title="下载"
@click="downloadFile(listForm.model)" @click="downloadFile(item.id)"
class="icon-download" class="icon-download"
v-btn-permission="''" v-btn-permission="''"
/> />
<i <i
title="下载带水印" title="下载带水印"
@click="downloadFileByWater(listForm.model,listForm.modelName)" @click="downloadFileByWater(item.id, item.name)"
class="icon-download2" class="icon-download2"
v-btn-permission="''" v-btn-permission="''"
/> />
@@ -255,6 +277,7 @@ export default {
selectList: [], //选择标准的选择框 selectList: [], //选择标准的选择框
bringData: [], bringData: [],
commentText: "", //填写会签意见 commentText: "", //填写会签意见
fileList:[],
page: 1, page: 1,
total: 0, total: 0,
pageSize: this.$store.getters.userInfo.configContent, pageSize: this.$store.getters.userInfo.configContent,
@@ -356,6 +379,9 @@ export default {
this.listForm.applyUpdUserId = item.applyUpdUserId; this.listForm.applyUpdUserId = item.applyUpdUserId;
this.listForm.jlUserId = item.jlUserId; this.listForm.jlUserId = item.jlUserId;
this.listForm.zrUserId = item.zrUserId; this.listForm.zrUserId = item.zrUserId;
this.fileIds = item.fileId;
console.log(this.fileIds);
this.getFileInfo();
}); });
}, },
// 请求上传的文件信息 // 请求上传的文件信息
@@ -365,11 +391,15 @@ export default {
}, { }, {
_this: this _this: this
}, res => { }, res => {
console.log(res);
this.$nextTick(() => { this.$nextTick(() => {
res.data.map(item => { res.data.map(item => {
this.listForm.modelName = item.oldFileName; // 赋值要回显的上传文件内容
this.listForm.model = item.id; this.fileList.push({
name: item.oldFileName,
uid: item.uid,
status: item.status,
id: item.id
});
}); });
}); });
}, e => { }, e => {
@@ -399,8 +429,27 @@ export default {
}, },
//驳回事件 //驳回事件
beforeBack() { beforeBack() {
this.listForm.approvalOpinion = "1"; if(!this.commentText){
this.handleSubmit(); this.$message.warning('请填写审批意见')
}else{
this.listForm.approvalOpinion = "1";
this.saveLoading = true
this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm);
this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds,
userId: this.userId,
json: json
}, {
_this: this
}, res => {
if (res.success) {
this.$message.success(res.message);
this.$router.push("/processCenter");
}
this.saveLoading = false
});
}/**/
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
@@ -480,6 +529,31 @@ export default {
padding: 0 20px 0; padding: 0 20px 0;
} }
} }
p {
& > a {
cursor: pointer;
}
& > i {
display: inline-block;
margin-left: 3px;
width: 18px;
height: 16px;
background-repeat: no-repeat;
background-size: 100% 100%;
background-position: center center;
vertical-align: sub;
cursor: pointer;
}
.icon-download {
background-image: url("~assets/images/shangqi/img/download.png");
}
.icon-download2 {
background-image: url("~assets/images/shangqi/img/download2.png");
}
}
.choiceBtn { .choiceBtn {
.el-button--primary { .el-button--primary {
@@ -810,7 +810,7 @@
</el-form-item> </el-form-item>
</el-card> </el-card>
</el-timeline-item> </el-timeline-item>
<el-timeline-item timestamp="修订申请人" placement="top" :color="roleForm.applyUpdUserName ? '#66b1ff' : ''"> <el-timeline-item timestamp="修订申请人" v-if="form.signFlag === '1'" placement="top" :color="roleForm.applyUpdUserName ? '#66b1ff' : ''">
<el-card> <el-card>
<el-form-item prop="applyUpdUserName" style="margin-bottom: 0"> <el-form-item prop="applyUpdUserName" style="margin-bottom: 0">
<h4>修订申请人</h4> <h4>修订申请人</h4>
@@ -282,7 +282,7 @@ export default {
}, },
// 点击查看 // 点击查看
handlePreview(item) { handlePreview(item) {
console.log(item) console.log(item);
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
name: "OtherStandardDetails", name: "OtherStandardDetails",
params: { params: {
@@ -304,14 +304,14 @@ export default {
}, res => { }, res => {
this.standardData = res.data.list; this.standardData = res.data.list;
this.standardData.forEach(item => { this.standardData.forEach(item => {
if(item.attrInfoMap === null){ if (item.attrInfoMap === null) {
this.$set(item, "ZCCSSRQ", ''); this.$set(item, "ZCCSSRQ", "");
this.$set(item, "XCXSSRQ", ''); this.$set(item, "XCXSSRQ", "");
}else{ } else {
this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ); this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ);
this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ); this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ);
} }
}) });
this.totalNo = res.data.count; this.totalNo = res.data.count;
}, e => { }, e => {
}); });
@@ -354,7 +354,10 @@ export default {
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
this.isSubmit = true if (!this.listForm.jgUser) {
this.$message.warning("请选择架构经理");
} else {
this.isSubmit = true;
this.listForm.commentText = this.commentText; this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
@@ -368,9 +371,10 @@ export default {
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 => {
}); });
}
}, },
choiceZRR(scope, type, title, id) { choiceZRR(scope, type, title, id) {
if (scope != null) { if (scope != null) {
@@ -108,12 +108,12 @@
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="责任人" label="分发责任人"
width="170" width="170"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.liablePeopleId" style="display: none;"/> <el-input v-model="scope.row.liablePeopleId" style="display: none;"/>
<el-input v-model="scope.row.liablePeople" placeholder="请选择落实人" @click.native="choiceZRRS(scope.row.liablePeopleId, 1, scope.$index)"/> <el-input v-model="scope.row.liablePeople" placeholder="请选择分发责任人" @click.native="choiceZRRS(scope.row.liablePeopleId, 1, scope.$index)"/>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@@ -370,6 +370,7 @@ export default {
if(this.peopleFlag === true){ if(this.peopleFlag === true){
this.listForm.commentText = this.commentText; this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
console.log(json)
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -430,6 +431,7 @@ export default {
if (this.type === 1) { if (this.type === 1) {
this.dataList[this.zrIndex].liablePeopleId = data[0].id this.dataList[this.zrIndex].liablePeopleId = data[0].id
this.dataList[this.zrIndex].liablePeople = data[0].name this.dataList[this.zrIndex].liablePeople = data[0].name
this.$forceUpdate()
} else if(this.type === 2) { } else if(this.type === 2) {
this.dataList.forEach( item => { this.dataList.forEach( item => {
this.selectList.forEach( items => { this.selectList.forEach( items => {
@@ -437,6 +439,7 @@ export default {
item.liablePeopleId = data[0].id item.liablePeopleId = data[0].id
item.liablePeople = data[0].name item.liablePeople = data[0].name
} }
this.$forceUpdate()
}) })
}) })
} }
@@ -451,6 +454,14 @@ export default {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程"; return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
} }
}, },
watch: {
// dataList: {
// deep: true,
// handler (val) {
// console.log('dataList update', val)
// }
// }
},
mounted() { mounted() {
this.processTable(); this.processTable();
this.getData(); this.getData();
@@ -315,6 +315,7 @@ export default {
taskIds: this.taskIds, taskIds: this.taskIds,
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
console.log(res.mesg)
if (res) { if (res) {
const processForm = JSON.parse(res.mesg); const processForm = JSON.parse(res.mesg);
this.getFormFieldList(processForm); this.getFormFieldList(processForm);
@@ -189,7 +189,7 @@
align="center" align="center"
label="项目经理"> label="项目经理">
</el-table-column> </el-table-column>
<el-table-column label="" fixed="right" width="50" :resizable="false"> <el-table-column label="" fixed="right" width="50" :resizable="false" label="操作" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div @click.stop style="display: inline-block"> <div @click.stop style="display: inline-block">
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown trigger="click" @command="handleCommand">
@@ -203,6 +203,7 @@
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown trigger="click" @command="handleCommand">
<i class="iconfont">&#xe61e;</i> <i class="iconfont">&#xe61e;</i>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<!--未符合项整改库-查看-->
<el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'374cb5206597fa201e57f561ff2f8ed7'">查看</el-dropdown-item> <el-dropdown-item :command="[scope.row, '查看']" v-btn-permission="'374cb5206597fa201e57f561ff2f8ed7'">查看</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
@@ -224,7 +225,7 @@
destroy-on-close destroy-on-close
:wrapperClosable="false" :wrapperClosable="false"
class="seeHisToryDraw" class="seeHisToryDraw"
size="1000px" size="600px"
> >
<div class="demo-drawer-content"> <div class="demo-drawer-content">
<div class="el-drawer-form" style="height: auto"> <div class="el-drawer-form" style="height: auto">