Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
yanyizhou
2021-08-08 15:48:59 +08:00
40 changed files with 435 additions and 191 deletions
+2 -2
View File
@@ -300,11 +300,11 @@ export default {
// path: '/convertDocView', // path: '/convertDocView',
// menuId: '3F52K25546' // menuId: '3F52K25546'
// }, // },
{ /*{
title: '菜单管理', title: '菜单管理',
path: '/menuManage', path: '/menuManage',
menuId: '87b8b4f5817a7829696e63185c744d52' menuId: '87b8b4f5817a7829696e63185c744d52'
}, },*/
{ {
title: '链接管理', title: '链接管理',
path: '/linkManage', path: '/linkManage',
+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">
@@ -376,12 +376,12 @@
<span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span> <span class="time-text">上传时间:{{ dateFormat(file.modifyTime) }}</span>
</template> </template>
</p> </p>
<!-- <el-button--> <el-button
<!-- v-if="child.attrField === 'FBGBJBD' || child.attrField === 'SSG' || child.attrField === 'ZQYJG' || child.attrField === 'BPG' || child.attrField === 'ZBJBD' || child.attrField === 'CA'"--> v-if="child.attrField === 'FBGBJBD' || child.attrField === 'SSG' || child.attrField === 'ZQYJG' || child.attrField === 'BPG' || child.attrField === 'ZBJBD' || child.attrField === 'CA'"
<!-- @click="showItemsModel(child.attrField)"--> @click="showItemsModel(child.attrField)"
<!-- class="decomposition-btn"--> class="decomposition-btn"
<!-- icon="icon-separate"--> icon="icon-separate"
<!-- >标准分解单</el-button>--> >标准分解单</el-button>
</div> </div>
</div> </div>
@@ -186,12 +186,20 @@
prop="standNumber" prop="standNumber"
label="标准号/政策号" label="标准号/政策号"
align="center"> align="center">
<template slot-scope="scope">
<a class="table-jump"
@click="handlePreview1(scope.row)">{{ scope.row.standNumber }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standName" prop="standName"
label="标准名称/政策名称" label="标准名称/政策名称"
align="center" align="center"
> >
<template slot-scope="scope">
<a class="table-jump"
@click="handlePreview1(scope.row)">{{ scope.row.standName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standFileClassifyShow" prop="standFileClassifyShow"
@@ -819,6 +827,17 @@ export default {
}) })
window.open(routeUrl.href, '_blank') window.open(routeUrl.href, '_blank')
}, },
//拆分页点击查看详情
handlePreview1(item) {
let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
pageType: item.sarType + '_STAND'
}
})
window.open(routeUrl.href, '_blank')
},
// 查询政策和标准 // 查询政策和标准
getSearch () { getSearch () {
if (this.conditionForm.standType === 'FOREIGN2') { if (this.conditionForm.standType === 'FOREIGN2') {
@@ -39,7 +39,7 @@
<div class="action-bar"> <div class="action-bar">
<el-button v-btn-permission="'SRE2ZRX3MJSSH5YYLRGH'" size="mini" @click="importItemInfo" ><i class="iconfont">&#xe6de;</i>导入</el-button> <el-button v-btn-permission="'SRE2ZRX3MJSSH5YYLRGH'" size="mini" @click="importItemInfo" ><i class="iconfont">&#xe6de;</i>导入</el-button>
<el-button v-btn-permission="''" size="mini" @click="exportItemInfo"><i class="iconfont">&#xe6e9;</i>导出</el-button> <el-button v-btn-permission="''" size="mini" @click="exportItemInfo"><i class="iconfont">&#xe6e9;</i>导出</el-button>
<el-button v-btn-permission="''" size="mini" @click="judgebatchDeleteItem"><i class="iconfont">&#xe61b;</i>删除</el-button> <!-- <el-button v-btn-permission="''" size="mini" @click="judgebatchDeleteItem"><i class="iconfont">&#xe61b;</i>删除</el-button>-->
<el-button v-btn-permission="'QULWGFSB3NMP84REU7BP'" size="mini" @click="uploadImportModal"><i class="iconfont">&#xe825;</i>模板下载</el-button> <el-button v-btn-permission="'QULWGFSB3NMP84REU7BP'" size="mini" @click="uploadImportModal"><i class="iconfont">&#xe825;</i>模板下载</el-button>
<el-button v-btn-permission="''" size="mini" @click="batchCopy">批量复制</el-button> <el-button v-btn-permission="''" size="mini" @click="batchCopy">批量复制</el-button>
<el-button v-btn-permission="'TE39XUT4KRTPZGQH5KLF'" size="mini" @click="combineItems">合并条款</el-button> <el-button v-btn-permission="'TE39XUT4KRTPZGQH5KLF'" size="mini" @click="combineItems">合并条款</el-button>
@@ -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"
@@ -191,7 +190,7 @@
<p>点击或拖拽上传文件</p> <p>点击或拖拽上传文件</p>
</div> </div>
</el-upload> </el-upload>
<el-progress style="width: 380px; margin-top: 5px;" v-show="progressType" :percentage="loadProgress"></el-progress> <!-- <el-progress style="width: 380px; margin-top: 5px;" v-show="progressType" :percentage="loadProgress"></el-progress>-->
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@@ -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 => {
@@ -103,13 +103,13 @@
<el-table-column <el-table-column
prop="itemsName" prop="itemsName"
label="条款名称" label="条款名称"
width="170" width="230"
show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itermsConditions" prop="itermsConditions"
label="条款内容" label="条款内容"
show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -597,13 +597,13 @@
// this.form.itemsNum = bringData[0].showNumber // this.form.itemsNum = bringData[0].showNumber
// this.form.itemsName = bringData[0].standName // this.form.itemsName = bringData[0].standName
// } // }
this.form.standId = bringData[0].id this.form.standId = bringData[0].standId
this.sarType = bringData[0].standType this.sarType = bringData[0].standType
this.standId = bringData[0].standId this.standId = bringData[0].standId
this.listModel = false; this.listModel = false;
this.listModel2 = true this.listModel2 = true
this.$http.get('lawss/sarFileSplitItems/getSplitItemsByPage', { this.$http.get('lawss/sarFileSplitItems/getSplitItemsByPage', {
infoId: this.form.standId, infoId: bringData[0].id,
page: 1, page: 1,
pageSize: 9999 pageSize: 9999
}, { }, {
@@ -104,13 +104,13 @@
<el-table-column <el-table-column
prop="itemsName" prop="itemsName"
label="条款名称" label="条款名称"
width="170" width="230"
show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itermsConditions" prop="itermsConditions"
label="条款内容" label="条款内容"
show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -602,13 +602,13 @@
// this.form.itemsNum = bringData[0].showNumber // this.form.itemsNum = bringData[0].showNumber
// this.form.itemsName = bringData[0].standName // this.form.itemsName = bringData[0].standName
// } // }
this.form.standId = bringData[0].id this.form.standId = bringData[0].standId
this.sarType = bringData[0].standType this.sarType = bringData[0].standType
this.standId = bringData[0].standId this.standId = bringData[0].standId
this.listModel = false; this.listModel = false;
this.listModel2 = true this.listModel2 = true
this.$http.get('lawss/sarFileSplitItems/getSplitItemsByPage', { this.$http.get('lawss/sarFileSplitItems/getSplitItemsByPage', {
infoId: this.form.standId, infoId: bringData[0].id,
page: 1, page: 1,
pageSize: 9999 pageSize: 9999
}, { }, {
@@ -98,13 +98,13 @@
<el-table-column <el-table-column
prop="itemsName" prop="itemsName"
label="条款名称" label="条款名称"
width="170" width="230"
show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itermsConditions" prop="itermsConditions"
label="条款内容" label="条款内容"
show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -99,15 +99,15 @@
<el-table-column <el-table-column
prop="itemsName" prop="itemsName"
label="条款名称" label="条款名称"
width="100" width="230"
show-overflow-tooltip
align="center">
</el-table-column>
<el-table-column
prop="itemsTitle"
label="条款内容"
align="center"> align="center">
</el-table-column> </el-table-column>
<!-- <el-table-column-->
<!-- prop="itemsTitle"-->
<!-- label="条款内容"-->
<!-- show-overflow-tooltip-->
<!-- align="center">-->
<!-- </el-table-column>-->
<el-table-column <el-table-column
prop="technicalRequir" prop="technicalRequir"
width="150" width="150"
@@ -94,13 +94,13 @@
<el-table-column <el-table-column
prop="itemsName" prop="itemsName"
label="条款名称" label="条款名称"
width="100" width="230"
show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itemsTitle" prop="itemsTitle"
label="条款内容" label="条款内容"
show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -94,13 +94,13 @@
<el-table-column <el-table-column
prop="itemsName" prop="itemsName"
label="条款名称" label="条款名称"
width="100" width="230"
show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itemsTitle" prop="itemsTitle"
label="条款内容" label="条款内容"
show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -95,13 +95,13 @@
<el-table-column <el-table-column
prop="itemsName" prop="itemsName"
label="条款名称" label="条款名称"
width="100" width="230"
show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="itemsTitle" prop="itemsTitle"
label="条款内容" label="条款内容"
show-overflow-tooltip
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -397,7 +397,7 @@
import ProcessHeader from "../../components/ProcessHeader"; import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, saveinboundTask } from "api/process"; import { inboundLiaisonDetail, saveTaskForPub } from "api/process";
export default { export default {
name: "bzqdfbStep3", name: "bzqdfbStep3",
@@ -693,16 +693,24 @@ export default {
getFormFieldList (item) { getFormFieldList (item) {
this.$nextTick(() => { this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item)) this.listForm = JSON.parse(JSON.stringify(item))
this.listForm.prcNum = this.prcNum if(item.form === undefined){
this.listForm.prcName = this.prcName this.listForm.prcNum = this.prcNum
this.listForm['id'] = item.id this.listForm.prcName = this.prcName
this.listForm.dataList = item.dataList this.listForm['id'] = item.id
this.dataList = item.dataList this.listForm.dataList = item.dataList
this.listForm.applyUpdUserId = item.applyUpdUserId this.dataList = item.dataList
this.listForm.jlUserId = item.jlUserId this.listForm.applyUpdUserId = item.applyUpdUserId
this.listForm.zrUserId = item.zrUserId this.listForm.jlUserId = item.jlUserId
this.fileIds = item.fileId; this.listForm.zrUserId = item.zrUserId
this.getFileInfo(); this.fileIds = item.fileId;
this.getFileInfo();
} else {
this.listForm = item.form
this.dataList = item.form.dataList
this.listForm.dataList = item.form.dataList
this.fileIds = item.form.fileId;
this.getFileInfo();
}
}) })
}, },
//保存事件 //保存事件
@@ -713,23 +721,19 @@ export default {
_formData.append("createUser", this.$store.getters.userInfo.userId); _formData.append("createUser", this.$store.getters.userInfo.userId);
_formData.append("createUserName", this.$store.getters.userInfo.userName); _formData.append("createUserName", this.$store.getters.userInfo.userName);
_formData.append("prcType", "4"); _formData.append("prcType", "4");
_formData.append('taskIds', this.taskIds)
_formData.append("json", JSON.stringify({ _formData.append("json", JSON.stringify({
taskInfo: '根据会签意见修订',
form: this.listForm, form: this.listForm,
roleForm: this.roleForm,
prcNum: this.$route.query.prcNum,
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
commentText: this.commentText commentText: this.commentText
})); }));
saveinboundTask(_formData).then(res => {
this.saveLoading = false; // saveTaskForPub(_formData).then(res => {
this.$message.success("保存成功"); // this.saveLoading = false;
this.$router.push('/processCenter') // this.$message.success("保存成功");
this.bpnId = res.result; // this.bpnId = res.result;
}).catch(e => { // }).catch(e => {
this.saveLoading = false; // this.saveLoading = false;
}); // });
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
@@ -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 {
@@ -217,14 +217,15 @@
clearable clearable
></el-input> ></el-input>
<div v-if="form.xgdName"> <div v-if="form.xgdName">
{{ form.xgdName }} <!-- {{ form.xgdName }}-->
<el-button <el-button
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
style="margin-left: 10px" style="margin-left: 10px"
@click="fileUpload('xgd')"> @click="fileUpload('xgd')">
重新上传 <i class="el-icon-upload el-icon--right"></i>
查看已上传的文件
</el-button> </el-button>
</div> </div>
<div v-else> <div v-else>
@@ -233,7 +234,8 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
@click="fileUpload('xgd')"> @click="fileUpload('xgd')">
点击上传 <i class="el-icon-upload el-icon--right"></i>
点击上传
</el-button> </el-button>
</div> </div>
</el-form-item> </el-form-item>
@@ -245,14 +247,15 @@
clearable clearable
></el-input> ></el-input>
<div v-if="form.fbgbjbdName"> <div v-if="form.fbgbjbdName">
{{ form.fbgbjbdName }} <!-- {{ form.fbgbjbdName }}-->
<el-button <el-button
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
style="margin-left: 10px" style="margin-left: 10px"
@click="fileUpload('fbgbjbd')"> @click="fileUpload('fbgbjbd')">
重新上传 <i class="el-icon-upload el-icon--right"></i>
查看已上传的文件
</el-button> </el-button>
</div> </div>
<div v-else> <div v-else>
@@ -261,6 +264,7 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
@click="fileUpload('fbgbjbd')"> @click="fileUpload('fbgbjbd')">
<i class="el-icon-upload el-icon--right"></i>
点击上传 点击上传
</el-button> </el-button>
</div> </div>
@@ -273,14 +277,15 @@
clearable clearable
></el-input> ></el-input>
<div v-if="form.zbjbdName"> <div v-if="form.zbjbdName">
{{ form.zbjbdName }} <!-- {{ form.zbjbdName }}-->
<el-button <el-button
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
style="margin-left: 10px" style="margin-left: 10px"
@click="fileUpload('zbjbd')"> @click="fileUpload('zbjbd')">
重新上传 <i class="el-icon-upload el-icon--right"></i>
查看已上传的文件
</el-button> </el-button>
</div> </div>
<div v-else> <div v-else>
@@ -289,6 +294,7 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
@click="fileUpload('zbjbd')"> @click="fileUpload('zbjbd')">
<i class="el-icon-upload el-icon--right"></i>
点击上传 点击上传
</el-button> </el-button>
</div> </div>
@@ -301,14 +307,15 @@
clearable clearable
></el-input> ></el-input>
<div v-if="form.bpgName"> <div v-if="form.bpgName">
{{ form.bpgName }} <!-- {{ form.bpgName }}-->
<el-button <el-button
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
style="margin-left: 10px" style="margin-left: 10px"
@click="fileUpload('bpg')"> @click="fileUpload('bpg')">
重新上传 <i class="el-icon-upload el-icon--right"></i>
查看已上传的文件
</el-button> </el-button>
</div> </div>
<div v-else> <div v-else>
@@ -317,6 +324,7 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
@click="fileUpload('bpg')"> @click="fileUpload('bpg')">
<i class="el-icon-upload el-icon--right"></i>
点击上传 点击上传
</el-button> </el-button>
</div> </div>
@@ -329,14 +337,15 @@
clearable clearable
></el-input> ></el-input>
<div v-if="form.ssgName"> <div v-if="form.ssgName">
{{ form.ssgName }} <!-- {{ form.ssgName }}-->
<el-button <el-button
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
style="margin-left: 10px" style="margin-left: 10px"
@click="fileUpload('ssg')"> @click="fileUpload('ssg')">
重新上传 <i class="el-icon-upload el-icon--right"></i>
查看已上传的文件
</el-button> </el-button>
</div> </div>
<div v-else> <div v-else>
@@ -345,6 +354,7 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
@click="fileUpload('ssg')"> @click="fileUpload('ssg')">
<i class="el-icon-upload el-icon--right"></i>
点击上传 点击上传
</el-button> </el-button>
</div> </div>
@@ -359,14 +369,15 @@
clearable clearable
></el-input> ></el-input>
<div v-if="form.kwjName"> <div v-if="form.kwjName">
{{ form.kwjName }} <!-- {{ form.kwjName }}-->
<el-button <el-button
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
style="margin-left: 10px" style="margin-left: 10px"
@click="fileUpload('kwj')"> @click="fileUpload('kwj')">
重新上传 <i class="el-icon-upload el-icon--right"></i>
查看已上传的文件
</el-button> </el-button>
</div> </div>
<div v-else> <div v-else>
@@ -375,6 +386,7 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
@click="fileUpload('kwj')"> @click="fileUpload('kwj')">
<i class="el-icon-upload el-icon--right"></i>
点击上传 点击上传
</el-button> </el-button>
</div> </div>
@@ -387,14 +399,15 @@
clearable clearable
></el-input> ></el-input>
<div v-if="form.zqyjgName"> <div v-if="form.zqyjgName">
{{ form.zqyjgName }} <!-- {{ form.zqyjgName }}-->
<el-button <el-button
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
style="margin-left: 10px" style="margin-left: 10px"
@click="fileUpload('zqyjg')"> @click="fileUpload('zqyjg')">
重新上传 <i class="el-icon-upload el-icon--right"></i>
查看已上传的文件
</el-button> </el-button>
</div> </div>
<div v-else> <div v-else>
@@ -403,6 +416,7 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
@click="fileUpload('zqyjg')"> @click="fileUpload('zqyjg')">
<i class="el-icon-upload el-icon--right"></i>
点击上传 点击上传
</el-button> </el-button>
</div> </div>
@@ -415,14 +429,15 @@
clearable clearable
></el-input> ></el-input>
<div v-if="form.caName"> <div v-if="form.caName">
{{ form.caName }} <!-- {{ form.caName }}-->
<el-button <el-button
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
style="margin-left: 10px" style="margin-left: 10px"
@click="fileUpload('ca')"> @click="fileUpload('ca')">
重新上传 <i class="el-icon-upload el-icon--right"></i>
查看已上传的文件
</el-button> </el-button>
</div> </div>
<div v-else> <div v-else>
@@ -431,6 +446,7 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
@click="fileUpload('ca')"> @click="fileUpload('ca')">
<i class="el-icon-upload el-icon--right"></i>
点击上传 点击上传
</el-button> </el-button>
</div> </div>
@@ -443,14 +459,15 @@
clearable clearable
></el-input> ></el-input>
<div v-if="form.jdwjName"> <div v-if="form.jdwjName">
{{ form.jdwjName }} <!-- {{ form.jdwjName }}-->
<el-button <el-button
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
style="margin-left: 10px" style="margin-left: 10px"
@click="fileUpload('jdwj')"> @click="fileUpload('jdwj')">
重新上传 <i class="el-icon-upload el-icon--right"></i>
查看已上传的文件
</el-button> </el-button>
</div> </div>
<div v-else> <div v-else>
@@ -459,6 +476,7 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
@click="fileUpload('jdwj')"> @click="fileUpload('jdwj')">
<i class="el-icon-upload el-icon--right"></i>
点击上传 点击上传
</el-button> </el-button>
</div> </div>
@@ -702,7 +720,16 @@
clearable clearable
></el-input> ></el-input>
<div v-if="form.glwjName"> <div v-if="form.glwjName">
{{ form.glwjName }}
<el-button
type="primary"
class="common-button-primary"
size="mini"
@click="fileUpload('glwj')">
<i class="el-icon-upload el-icon--right"></i>
查看已上传文件
</el-button>
<!-- {{ form.glwjName }}-->
</div> </div>
<div v-else> <div v-else>
<el-button <el-button
@@ -710,6 +737,7 @@
class="common-button-primary" class="common-button-primary"
size="mini" size="mini"
@click="fileUpload('glwj')"> @click="fileUpload('glwj')">
<i class="el-icon-upload el-icon--right"></i>
点击上传 点击上传
</el-button> </el-button>
</div> </div>
@@ -810,7 +838,7 @@
</el-form-item> </el-form-item>
</el-card> </el-card>
</el-timeline-item> </el-timeline-item>
<el-timeline-item timestamp="修订申请人" v-if="form.signFlag === '1'" 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>
@@ -1196,6 +1224,16 @@
data () { data () {
return { return {
fileList: [], fileList: [],
caFileList: [],
FBGBJBDFileList: [],
xgdFileList: [],
bpgFileList: [],
ssgFileList: [],
zqyjgFileList: [],
jdwjFileList: [],
zbjbdFileList: [],
kwjFileList: [],
qlwjFileList: [],
filterText:'', filterText:'',
textStatusMap: {}, // 文本状态id与name对应 textStatusMap: {}, // 文本状态id与name对应
standardDrawer: false, standardDrawer: false,
@@ -1332,7 +1370,7 @@
zqyjg: '', // 征求意见稿 zqyjg: '', // 征求意见稿
jdwj: '', // 解读文件 jdwj: '', // 解读文件
zbjbd: '', // 增补件 zbjbd: '', // 增补件
kwj: '', // 勘误件 kwj: '', // 勘 误件
caName: '', // 草案 caName: '', // 草案
fbgbjbdName: '', // 发布稿 fbgbjbdName: '', // 发布稿
xgdName: '', // 修改单 xgdName: '', // 修改单
@@ -1413,9 +1451,9 @@
{ required: true, message: '请选择文本状态', trigger: 'change' } { required: true, message: '请选择文本状态', trigger: 'change' }
] ]
, ,
// issueTime: [ issueTime: [
// { required: true, message: '请选择标准发布日期', trigger: 'change' } { required: false, message: '请选择标准发布日期', trigger: 'change' }
// ], ],
qcdw: [ qcdw: [
{ required: true, message: '请选择起草单位', trigger: 'change' } { required: true, message: '请选择起草单位', trigger: 'change' }
], ],
@@ -2040,43 +2078,54 @@
// 导入标准数据成功后执行 // 导入标准数据成功后执行
importFileSuccess (response, file,fileList) { importFileSuccess (response, file,fileList) {
// 上传成功后判断是否是两条数据是的话替换掉旧数据 // 上传成功后判断是否是两条数据是的话替换掉旧数据
if (fileList.length > 1) { // if (fileList.length > 1) {
this.fileList = fileList.splice(0, 1) // this.fileList = fileList.splice(0, 1)
} // }
if (response.ok) { if (response.ok) {
this.fileMadel = false // this.fileMadel = false
this.fileList = [] // this.fileList = []
if(this.fileType === 'fbgbjbd'){ if(this.fileType === 'fbgbjbd'){
this.FBGBJBDFileList=fileList;
this.form.fbgbjbd = response.data.id; this.form.fbgbjbd = response.data.id;
this.form.fbgbjbdName = response.data.name; this.form.fbgbjbdName = response.data.name;
}else if(this.fileType === 'xgd'){ }else if(this.fileType === 'xgd'){
this.form.xgd = response.data.id; this.xgdFileList=fileList;
this.form.xgd = response.data.id;
this.form.xgdName = response.data.name; this.form.xgdName = response.data.name;
}else if(this.fileType === 'bpg'){ }else if(this.fileType === 'bpg'){
this.bpgFileList=fileList;
this.form.bpg = response.data.id; this.form.bpg = response.data.id;
this.form.bpgName = response.data.name; this.form.bpgName = response.data.name;
}else if(this.fileType === 'ssg'){ }else if(this.fileType === 'ssg'){
this.ssgFileList=fileList;
this.form.ssg = response.data.id; this.form.ssg = response.data.id;
this.form.ssgName = response.data.name; this.form.ssgName = response.data.name;
}else if(this.fileType === 'zqyjg'){ }else if(this.fileType === 'zqyjg'){
this.zqyjgFileList=fileList;
this.form.zqyjg = response.data.id; this.form.zqyjg = response.data.id;
this.form.zqyjgName = response.data.name; this.form.zqyjgName = response.data.name;
}else if(this.fileType === 'jdwj'){ }else if(this.fileType === 'jdwj'){
this.jdwjFileList=fileList;
this.form.jdwj = response.data.id; this.form.jdwj = response.data.id;
this.form.jdwjName = response.data.name; this.form.jdwjName = response.data.name;
}else if(this.fileType === 'kwj'){ }else if(this.fileType === 'kwj'){
this.kwjFileList=fileList;
this.form.kwj = response.data.id; this.form.kwj = response.data.id;
this.form.kwjName = response.data.name; this.form.kwjName = response.data.name;
}else if(this.fileType === 'xgd'){ }else if(this.fileType === 'xgd'){
this.xgdFileList=fileList;
this.form.xgd = response.data.id; this.form.xgd = response.data.id;
this.form.xgdName = response.data.name; this.form.xgdName = response.data.name;
}else if(this.fileType === 'glwj'){ }else if(this.fileType === 'glwj'){
this.qlwjFileList=fileList;
this.form.glwj = response.data.id; this.form.glwj = response.data.id;
this.form.glwjName = response.data.name; this.form.glwjName = response.data.name;
}else if(this.fileType === 'ca'){ }else if(this.fileType === 'ca'){
this.caFileList=fileList;
this.form.ca = response.data.id; this.form.ca = response.data.id;
this.form.caName = response.data.name; this.form.caName = response.data.name;
}else if(this.fileType === 'zbjbd'){ }else if(this.fileType === 'zbjbd'){
this.zbjbdFileList=fileList;
this.form.zbjbd = response.data.id; this.form.zbjbd = response.data.id;
this.form.zbjbdName = response.data.name; this.form.zbjbdName = response.data.name;
} }
@@ -2089,8 +2138,33 @@
}, },
fileUpload (type) { fileUpload (type) {
this.fileType = ''; this.fileType = '';
this.fileMadel = true // this.fileMadel = true;//此句应在最后执行,否则会有先显示没变换的的文件列表,在显示变换了的文件列表
this.fileType = type; this.fileType = type;
if (type==='ca'){
this.fileList=this.caFileList;
}else if (type==='fbgbjbd'){
this.fileList=this.FBGBJBDFileList;
}else if (type==='xgd'){
this.fileList=this.xgdFileList;
}else if(type==='bpg'){
this.fileList=this.bpgFileList;
}else if (type==='ssg'){
this.fileList=this.ssgFileList;
}else if (type==='zqyjg'){
this.fileList=this.zqyjgFileList;
}else if (type==='jdwj'){
this.fileList=this.jdwjFileList;
}else if (type==='zbjbd'){
this.fileList=this.zbjbdFileList;
}else if (type==='kwj'){
this.fileList=this.kwjFileList;
}else if (type==='glwj'){
this.fileList=this.qlwjFileList;
}
this.fileMadel = true;
}, },
popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) { popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) {
if(checkedData) { if(checkedData) {
@@ -836,29 +836,26 @@ export default {
methods: { methods: {
downloadFile (fileType) { downloadFile (fileType) {
if(fileType === 'fbgbjbd'){ if(fileType === 'fbgbjbd'){
if(this.fbgbjbdFileId.search(',')){ window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.fbgbjbdFileId.replace(",","");
this.fbgbjbdFileId=this.fbgbjbdFileId.replace(",","");
console.log(this.fbgbjbdFileId);
}
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.fbgbjbdFileId
}else if(fileType === 'xgd'){ }else if(fileType === 'xgd'){
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.xgdFileId
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.xgdFileId.replace(",","");
}else if(fileType === 'bpg'){ }else if(fileType === 'bpg'){
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.bpgFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.bpgFileId.replace(",","");
}else if(fileType === 'ssg'){ }else if(fileType === 'ssg'){
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.ssgFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.ssgFileId.replace(",","");
}else if(fileType === 'zqyjg'){ }else if(fileType === 'zqyjg'){
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.zqyjgFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.zqyjgFileId.replace(",","");
}else if(fileType === 'jdwj'){ }else if(fileType === 'jdwj'){
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.jdwjFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.jdwjFileId.replace(",","");
}else if(fileType === 'kwj'){ }else if(fileType === 'kwj'){
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.kwjFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.kwjFileId.replace(",","");
}else if(fileType === 'glwj'){ }else if(fileType === 'glwj'){
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.glwjFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.glwjFileId.replace(",","");
}else if(fileType === 'ca'){ }else if(fileType === 'ca'){
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.caFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.caFileId.replace(",","");
}else if(fileType === 'zbjbd'){ }else if(fileType === 'zbjbd'){
window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.zbjbdFileId window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + this.zbjbdFileId.replace(",","");
} }
}, },
popoverHide (checkedIds, checkedData) { popoverHide (checkedIds, checkedData) {
@@ -1138,13 +1138,13 @@ export default {
{ min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' } { min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' }
], ],
standNature: [ standNature: [
{ required: false, message: '请选择标准性质', trigger: 'change' } { required: true, message: '请选择标准性质', trigger: 'change' }
], ],
textStatus: [ textStatus: [
{ required: true, message: '请选择文本状态', trigger: 'change' } { required: true, message: '请选择文本状态', trigger: 'change' }
], ],
issueTime: [ issueTime: [
{ required: true, message: '请选择标准发布日期', trigger: 'change' } { required: false, message: '请选择标准发布日期', trigger: 'change' }
], ],
qcdw: [ qcdw: [
{ required: true, message: '请选择起草单位', trigger: 'change' } { required: true, message: '请选择起草单位', trigger: 'change' }
@@ -281,6 +281,7 @@ export default {
cid: '', // 编号 cid: '', // 编号
endTime: '', // 结束日期 endTime: '', // 结束日期
cname: '', // 名称 cname: '', // 名称
standType: '',
}, },
formRules: { formRules: {
cid: [ cid: [
@@ -454,6 +455,7 @@ export default {
} else { } else {
this.form.cid = bringData[0].standSortShow + '-' + bringData[0].standNumber this.form.cid = bringData[0].standSortShow + '-' + bringData[0].standNumber
} }
this.form.standType = bringData[0].standType
this.form.cname = bringData[0].standName; this.form.cname = bringData[0].standName;
this.listModel = false; this.listModel = false;
} else if (this.selectedList.length > 1) { } else if (this.selectedList.length > 1) {
@@ -533,9 +533,14 @@ export default {
}).then(res => { }).then(res => {
let mes = JSON.parse(res.mes); let mes = JSON.parse(res.mes);
this.listForm = mes.form; this.listForm = mes.form;
this.dataList = mes.form.dataList;
this.roleForm = mes.roleForm; this.roleForm = mes.roleForm;
this.commentText = mes.commentText; this.commentText = mes.commentText;
this.dataList = mes.form.dataList;
this.dataList.forEach(item => {
if(!item.productLine){
this.dataList = null
}
})
}); });
}, },
checkedRole(data) { checkedRole(data) {
@@ -755,8 +760,10 @@ export default {
//选择拆分标准确定事件 //选择拆分标准确定事件
OkDrawer() { OkDrawer() {
if (this.selectedList.length == 1) { if (this.selectedList.length == 1) {
this.listForm.standNumber = this.selectedList[0].standNumber; this.listForm.standNumber = this.selectedList[0].standSortShow + '\xa0\xa0' + this.selectedList[0].standNumber + '-' + this.selectedList[0].standYear ;
this.listForm.standName = this.selectedList[0].standName; this.listForm.standName = this.selectedList[0].standName;
this.listForm.standType = this.selectedList[0].standType;
this.listForm.standId = this.selectedList[0].id;
this.listForm.id = this.selectedList[0].id; this.listForm.id = this.selectedList[0].id;
this.$http.get("SarStandItems/sar-stand-items/findAllItems", { this.$http.get("SarStandItems/sar-stand-items/findAllItems", {
ids: this.listForm.id, ids: this.listForm.id,
@@ -866,12 +873,12 @@ export default {
}, },
computed: {}, computed: {},
watch: { watch: {
dataList: { // dataList: {
deep: true, // deep: true,
handler (val) { // handler (val) {
console.log('dataList update', val) // console.log('dataList update', val)
} // }
} // }
}, },
mounted() { mounted() {
//从数据库中查询下拉框数据 //从数据库中查询下拉框数据
@@ -470,6 +470,7 @@ export default {
listForm: { listForm: {
standNumber: "", //标准编号 standNumber: "", //标准编号
standName: "",//标准名称 standName: "",//标准名称
standType: "", //标准类型
XCXSSRQ: "", //新车型实施日期 XCXSSRQ: "", //新车型实施日期
ZCCSSRQ: "", //在产车实施日期 ZCCSSRQ: "", //在产车实施日期
certifiedEngineer: "", //认证工程师 certifiedEngineer: "", //认证工程师
@@ -662,7 +663,6 @@ export default {
saveTaskFirst(_formData).then(res => { saveTaskFirst(_formData).then(res => {
this.saveLoading = false; this.saveLoading = false;
this.$message.success("保存成功"); this.$message.success("保存成功");
this.$router.push("/processCenter");
}).catch(e => { }).catch(e => {
this.saveLoading = false; this.saveLoading = false;
}); });
@@ -733,8 +733,10 @@ export default {
//选择拆分标准确定事件 //选择拆分标准确定事件
OkDrawer() { OkDrawer() {
if (this.selectedList.length === 1) { if (this.selectedList.length === 1) {
this.listForm.standNumber = this.selectedList[0].standSortShow + '-' + this.selectedList[0].standNumber + '-' + this.selectedList[0].standYear ; this.listForm.standNumber = this.selectedList[0].standSortShow + '\xa0\xa0' + this.selectedList[0].standNumber + '-' + this.selectedList[0].standYear ;
this.listForm.standName = this.selectedList[0].standName; this.listForm.standName = this.selectedList[0].standName;
this.listForm.standType = this.selectedList[0].standType;
this.listForm.standId = this.selectedList[0].id;
this.listForm.XCXSSRQ = this.selectedList[0].xcxssrqgj this.listForm.XCXSSRQ = this.selectedList[0].xcxssrqgj
this.listForm.ZCCSSRQ = this.selectedList[0].zccssrqgj this.listForm.ZCCSSRQ = this.selectedList[0].zccssrqgj
this.listForm.id = this.selectedList[0].id; this.listForm.id = this.selectedList[0].id;
@@ -64,7 +64,7 @@
style="width: 100%" style="width: 100%"
border border
@selection-change="selectStandChange" @selection-change="selectStandChange"
:height="sarProStateTableHeight" height="56%"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}"> fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}">
<el-table-column <el-table-column
@@ -64,7 +64,7 @@
style="width: 100%" style="width: 100%"
border border
@selection-change="selectStandChange" @selection-change="selectStandChange"
:height="sarProStateTableHeight" height="55%"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}"> fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}">
<el-table-column <el-table-column
@@ -64,7 +64,7 @@
style="width: 100%" style="width: 100%"
border border
@selection-change="selectStandChange" @selection-change="selectStandChange"
:height="sarProStateTableHeight" height="55%"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}"> fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}">
<el-table-column <el-table-column
@@ -64,7 +64,7 @@
style="width: 100%" style="width: 100%"
border border
@selection-change="selectStandChange" @selection-change="selectStandChange"
:height="sarProStateTableHeight" height="55%"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}"> fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}">
<el-table-column <el-table-column
@@ -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>
@@ -428,14 +428,18 @@ export default {
}, },
checkedRole (data) { checkedRole (data) {
if (this.type === 1) { if (this.type === 1) {
this.dataList[this.zrIndex].liablePeopleId = data[0].id const newRow = JSON.parse(JSON.stringify(this.dataList[this.zrIndex]))
this.dataList[this.zrIndex].liablePeople = data[0].name newRow.liablePeopleId = data[0].id
newRow.liablePeople = data[0].name
this.$set(this.dataList, this.zrIndex, newRow)
} else if(this.type === 2) { } else if(this.type === 2) {
this.dataList.forEach( item => { this.dataList.forEach((item, index) => {
this.selectList.forEach( items => { this.selectList.forEach( items => {
if (item.standId === items.standId) { if (item.standId === items.standId) {
item.liablePeopleId = data[0].id const newRow = JSON.parse(JSON.stringify(item))
item.liablePeople = data[0].name newRow.liablePeopleId = data[0].id
newRow.liablePeople = data[0].name
this.$set(this.dataList, index, newRow)
} }
}) })
}) })
@@ -451,6 +455,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();
@@ -64,7 +64,7 @@
align="center"> align="center">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standEnName" prop="standNumber"
label="标准号" label="标准号"
> >
<template slot-scope="scope"> <template slot-scope="scope">
@@ -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);
@@ -332,6 +333,8 @@ export default {
this.listForm["id"] = item.id; this.listForm["id"] = item.id;
this.listForm.dataList = item.dataList; this.listForm.dataList = item.dataList;
this.dataList = item.dataList; this.dataList = item.dataList;
console.log(this.dataList);
// this.dataList.standNumber = item.dataList.standSort + '\xa0\xa0' +item.dataList.standSort + '-' + item.dataList.standYear
let children = []; let children = [];
item.breakdownList.forEach( item.breakdownList.forEach(
item => { item => {
@@ -400,7 +400,6 @@ export default {
methods: { methods: {
// //
handlePreview(item) { handlePreview(item) {
console.log(item)
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
name: "OtherStandardDetails", name: "OtherStandardDetails",
params: { params: {
@@ -471,13 +470,11 @@ export default {
getFormFieldList(item) { getFormFieldList(item) {
this.$nextTick(() => { this.$nextTick(() => {
this.listForm = JSON.parse(JSON.stringify(item)); this.listForm = JSON.parse(JSON.stringify(item));
console.log(this.listForm)
this.listForm.prcNum = this.prcNum; this.listForm.prcNum = this.prcNum;
this.listForm.prcName = this.prcName; this.listForm.prcName = this.prcName;
this.listForm["id"] = item.id; this.listForm["id"] = item.id;
// this.listForm.dataList = item.dataList; // this.listForm.dataList = item.dataList;
this.dataList = this.listForm.dataList; this.dataList = this.listForm.dataList;
console.log(this.dataList)
}); });
}, },
// //
@@ -9,9 +9,9 @@
<div v-else-if="tabValue === 'listProject'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;"> <div v-else-if="tabValue === 'listProject'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
<list-project></list-project> <list-project></list-project>
</div> </div>
<div v-else-if="tabValue === 'listTracking'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;"> <!-- <div v-else-if="tabValue === 'listTracking'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
<list-tracking></list-tracking> <list-tracking></list-tracking>
</div> </div>-->
<div v-else-if="tabValue === 'listOther'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;"> <div v-else-if="tabValue === 'listOther'" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;">
<list-other></list-other> <list-other></list-other>
</div> </div>
@@ -68,13 +68,13 @@ export default {
name: "listProject" name: "listProject"
}); });
continue; continue;
} else if (entity.id === "418123d180abf67bd2c46d5a694baaa5") { }/* else if (entity.id === "418123d180abf67bd2c46d5a694baaa5") {
list.push({ list.push({
label: "重点标准跟踪清单", label: "重点标准跟踪清单",
name: "listTracking" name: "listTracking"
}); });
continue; continue;
} else if (entity.id === "5a75523729b04102a565167004d640e9") { }*/ else if (entity.id === "5a75523729b04102a565167004d640e9") {
list.push({ list.push({
label: "其他清单", label: "其他清单",
name: "listOther" name: "listOther"
@@ -646,7 +646,6 @@ export default {
}, },
// //
handlePreview(data) { handlePreview(data) {
debugger
let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
name: "OtherStandardDetails", name: "OtherStandardDetails",
params: { params: {
@@ -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">
@@ -60,13 +60,18 @@
width="180" width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div><span>{{ scope.row.standSort }} {{ scope.row.standNumber }}</span> <span v-if="scope.row.standYear">-{{ scope.row.standYear }}</span></div> <a class="table-jump"
@click="handlePreview(scope.row)">{{ scope.row.standNumber }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standName" prop="standName"
label="标准/政策名称" label="标准/政策名称"
> >
<template slot-scope="scope">
<a class="table-jump"
@click="handlePreview(scope.row)">{{ scope.row.standName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="interpretationTime" prop="interpretationTime"
@@ -322,6 +327,17 @@ export default {
this.$store.getters.userInfo.configContent = pageSize this.$store.getters.userInfo.configContent = pageSize
this.queryStandAndLaws() this.queryStandAndLaws()
}, },
//
handlePreview(item) {
let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
pageType: 'INLAND_STAND'
}
})
window.open(routeUrl.href, '_blank')
},
queryStandAndLaws () { queryStandAndLaws () {
this.sarProject.current = this.page this.sarProject.current = this.page
this.sarProject.size = this.pageSize this.sarProject.size = this.pageSize
@@ -65,14 +65,19 @@
label="标准/政策号" label="标准/政策号"
width="180" width="180"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div><span>{{ scope.row.standSort }} {{ scope.row.standNumber }}</span> <span v-if="scope.row.standYear">-{{ scope.row.standYear }}</span></div> <a class="table-jump"
</template> @click="handlePreview(scope.row)">{{ scope.row.standNumber }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standName" prop="standName"
label="标准/政策名称" label="标准/政策名称"
> >
<template slot-scope="scope">
<a class="table-jump"
@click="handlePreview(scope.row)">{{ scope.row.standName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="interpretationTime" prop="interpretationTime"
@@ -259,7 +264,19 @@ name: "technologyInvolveProject",
this.sarProjectListDatas = res.data.records this.sarProjectListDatas = res.data.records
this.total = res.data.total this.total = res.data.total
}, e=> {}) }, e=> {})
}, // },
//
handlePreview(item) {
let routeUrl = this.$router.resolve({
name: 'OtherStandardDetails',
params: {
id: item.standId,
pageType: item.standType + '_STAND'
}
})
window.open(routeUrl.href, '_blank')
},
//
resetSelect () { resetSelect () {
this.sarProject.country = '' this.sarProject.country = ''
this.sarProject.standCode='' this.sarProject.standCode=''
@@ -11,19 +11,19 @@
<div v-show="heightShow" class="transition-box"> <div v-show="heightShow" class="transition-box">
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">标准号</label> <label class="transition-box-label">标准号</label>
<span class="transition-box-span">{{ this.$route.query.item.cid }}</span> <span class="transition-box-span" @click="handlePreview($route.query.item)">{{ $route.query.item.cid }}</span>
</p> </p>
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">标准名称</label> <label class="transition-box-label">标准名称</label>
<span class="transition-box-span">{{ this.$route.query.item.cname || '-' }}</span> <span class="transition-box-span">{{ $route.query.item.cname || '-' }}</span>
</p> </p>
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">上传时间</label> <label class="transition-box-label">上传时间</label>
<span class="transition-box-span">{{ this.$route.query.item.endTime || '-' }}</span> <span class="transition-box-span">{{ $route.query.item.endTime || '-' }}</span>
</p> </p>
<p class="transition-box-p"> <p class="transition-box-p">
<label class="transition-box-label">征求意见周期</label> <label class="transition-box-label">征求意见周期</label>
<span class="transition-box-span" v-if="this.$route.query.item.startTime && this.$route.query.item.endTime">{{ this.$route.query.item.startTime + ' ~ ' + this.$route.query.item.endTime}}</span> <span class="transition-box-span" v-if="$route.query.item.startTime && $route.query.item.endTime">{{ $route.query.item.startTime + ' ~ ' + $route.query.item.endTime}}</span>
<span class="transition-box-span" v-else>-</span> <span class="transition-box-span" v-else>-</span>
</p> </p>
</div> </div>
@@ -166,6 +166,21 @@
} }
}) })
}, },
//
handlePreview(data) {
console.log(data);
return
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
params: {
id: data.id,
pageType: data.standType
}
});
window.open(routeUrl.href, "_blank");
},
// //
getList() { getList() {
this.spinShow = true this.spinShow = true