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

This commit is contained in:
yanyizhou
2021-08-05 18:01:40 +08:00
24 changed files with 238 additions and 260 deletions
@@ -216,7 +216,7 @@
:loading="isSubmit" :loading="isSubmit"
>{{ btnName }}</el-button >{{ btnName }}</el-button
> >
<!-- <el-button @click="uploadSave" type="primary">转换</Button>--> <!--<el-button @click="uploadSave" type="primary">转换</Button>-->
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@@ -53,7 +53,7 @@
size="small" size="small"
class="common-button-danger" class="common-button-danger"
@click="beforeBack" @click="beforeBack"
:loading="isSubmit" :loading="isSubmitBack"
v-if="showBack"> v-if="showBack">
<i class="iconfont" style="font-size: 12px;">&#xe615;</i> <i class="iconfont" style="font-size: 12px;">&#xe615;</i>
{{ backBTNText }}</el-button> {{ backBTNText }}</el-button>
@@ -151,6 +151,11 @@ export default {
type: Boolean, type: Boolean,
default: false default: false
}, },
// 保存按钮loading
isSubmitBack: {
type: Boolean,
default: false
},
// 是否默认委托事件 // 是否默认委托事件
defaultEntrust: { defaultEntrust: {
type: Boolean, type: Boolean,
@@ -31,7 +31,7 @@
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column prop="standSerialNumber" label="标准号" show-overflow-tooltip align="center"> <el-table-column prop="standSerialNumber" label="标准号" show-overflow-tooltip align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSerialNumber }}</a> <a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standId }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称"> <el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称">
@@ -102,7 +102,7 @@
<h4>确认+选择责任人</h4> <h4>确认+选择责任人</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.dutyUser" style="display: none;"></el-input> <el-input v-model="roleForm.dutyUser" style="display: none;"></el-input>
<el-input v-model="roleForm.dutyUserName" :disabled="true" placeholder="确认+选择责任人" @click.native="choiceZRR('dockUser', '选择标准法规工程师', roleForm.dockUser)"> <el-input v-model="roleForm.dutyUserName" :disabled="true" placeholder="确认+选择责任人">
</el-input> </el-input>
</div> </div>
</el-form-item> </el-form-item>
@@ -114,7 +114,7 @@
<h4>负责人</h4> <h4>负责人</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.uploadUser" style="display: none;"></el-input> <el-input v-model="roleForm.uploadUser" style="display: none;"></el-input>
<el-input v-model="roleForm.uploadUserName" :disabled="true" placeholder="选择负责人" @click.native="choiceZRR('dockUser', '选择标准法规工程师', roleForm.dockUser)"> <el-input v-model="roleForm.uploadUserName" :disabled="true" placeholder="负责人">
</el-input> </el-input>
</div> </div>
</el-form-item> </el-form-item>
@@ -126,7 +126,7 @@
<h4>分发负责人</h4> <h4>分发负责人</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.checkUser" style="display: none;"></el-input> <el-input v-model="roleForm.checkUser" style="display: none;"></el-input>
<el-input v-model="roleForm.checkUserName" :disabled="true" placeholder="分发负责人" @click.native="choiceZRR('dockUser', '选择标准法规工程师', roleForm.dockUser)"> <el-input v-model="roleForm.checkUserName" :disabled="true" placeholder="分发负责人">
</el-input> </el-input>
</div> </div>
</el-form-item> </el-form-item>
@@ -148,7 +148,7 @@
<el-form :modal="queryUnqualidiedData" inline class="label-input-form"> <el-form :modal="queryUnqualidiedData" inline class="label-input-form">
<el-form-item label="标准号/标准名称" class="search-item"> <el-form-item label="标准号/标准名称" class="search-item">
<el-input <el-input
v-model="queryUnqualidiedData.standSerialNumber" v-model="queryUnqualidiedData.standId"
placeholder="请输入" placeholder="请输入"
clearable clearable
:maxlength="100"></el-input> :maxlength="100"></el-input>
@@ -210,9 +210,9 @@
@selection-change="selectedChange" @selection-change="selectedChange"
> >
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column prop="standSerialNumber" align="center" show-overflow-tooltip label="标准号"> <el-table-column prop="standId" align="center" show-overflow-tooltip label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSerialNumber }}</a> <a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standId }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称"> <el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称">
@@ -291,6 +291,7 @@ export default {
pageSize: 10, pageSize: 10,
total: 0, total: 0,
closeState: '1', closeState: '1',
standId: '',
standSerialNumber: '', // 标准号/名称 standSerialNumber: '', // 标准号/名称
productName: '', // 项目名称 productName: '', // 项目名称
responsibleUnit: '' // 责任部门 responsibleUnit: '' // 责任部门
@@ -97,9 +97,9 @@
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column prop="standSerialNumber" show-overflow-tooltip label="标准号" align="center"> <el-table-column prop="standId" show-overflow-tooltip label="标准号" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSerialNumber }}</a> <a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standId }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称"> <el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称">
@@ -99,9 +99,9 @@
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column prop="standSerialNumber" show-overflow-tooltip label="标准号" align="center"> <el-table-column prop="standId" show-overflow-tooltip label="标准号" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSerialNumber }}</a> <a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standId }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称"> <el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称">
@@ -87,9 +87,9 @@
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column prop="standSerialNumber" align="center" show-overflow-tooltip label="标准号"> <el-table-column prop="standId" align="center" show-overflow-tooltip label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSerialNumber }}</a> <a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standId }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称"> <el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称">
@@ -118,6 +118,7 @@
accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx" accept=".ZIP, .zip, .docx, .DOCX, .xls, .xlsx"
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
:before-remove="handleBeforeRemove" :before-remove="handleBeforeRemove"
:on-remove="handleONRemove"
:on-success="handleOnsuccess" :on-success="handleOnsuccess"
> >
<el-button <el-button
@@ -314,12 +315,7 @@ export default {
} }
this.dataList.forEach(item => { this.dataList.forEach(item => {
if (item.fileText.length !== 0) { if (item.fileText.length !== 0) {
item.fileText.forEach(item1 => { this.fileTextList = item.fileText
this.fileTextList.push({
id: item1.id,
name: item1.name
})
})
} }
}) })
}) })
@@ -335,10 +331,18 @@ export default {
// 文件上传成功 // 文件上传成功
handleOnsuccess(res, file, fileList) { handleOnsuccess(res, file, fileList) {
if (res.ok) { if (res.ok) {
if (this.fileTextList !== null) {
this.newDataList = this.fileTextList
this.newDataList.push({ this.newDataList.push({
id: res.data.attId, id: res.data.attId,
name: res.data.standName name: res.data.standName
}) })
} else {
this.newDataList.push({
id: res.data.attId,
name: res.data.standName
})
}
this.fileListData.fileText = this.newDataList this.fileListData.fileText = this.newDataList
this.$message({ this.$message({
showClose: true, showClose: true,
@@ -377,14 +381,17 @@ export default {
}, },
// 移除上传的文件 // 移除上传的文件
handleBeforeRemove(file, fileList) { handleBeforeRemove(file, fileList) {
this.fileListData.fileText = fileList
this.fileTextList = fileList this.fileTextList = fileList
this.newDataList.forEach((item, index) => { /* this.newDataList.forEach((item, index) => {
if (file.name === item.name || file.id === item.id) { if (file.name === item.name || file.id === item.id) {
this.newDataList.splice(index, 1) this.newDataList.splice(index, 1)
} console.log(this.dataList)
})
},
}
})*/
},
handleONRemove() {},
/************ ********* *****************/ /************ ********* *****************/
// 点击查看 // 点击查看
handlePreview (item) { handlePreview (item) {
@@ -87,9 +87,9 @@
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"> fontWeight: 'bold', height: '48px'}">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column prop="standSerialNumber" align="center" show-overflow-tooltip label="标准号"> <el-table-column prop="standId" align="center" show-overflow-tooltip label="标准号">
<template slot-scope="scope"> <template slot-scope="scope">
<a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standSerialNumber }}</a> <a class="table-jump" @click="handlePreview(scope.row)">{{ scope.row.standId }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称"> <el-table-column prop="standName" align="center" show-overflow-tooltip label="标准名称">
@@ -201,7 +201,7 @@
approval approval
@back="handleSubmitNo" @back="handleSubmitNo"
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :isSubmitBack="backLoading"
@submit="handleSubmit" @submit="handleSubmit"
submitBTNText="同意" submitBTNText="同意"
> >
@@ -357,6 +357,7 @@ export default {
}) })
}, },
handleSubmitNo() { handleSubmitNo() {
this.backLoading = true
if (this.commentText) { if (this.commentText) {
var json = { var json = {
responUserInfo: { responUserInfo: {
@@ -372,12 +373,13 @@ export default {
}, {}, res => { }, {}, res => {
if (res.success) { if (res.success) {
this.$message.success('驳回成功') this.$message.success('驳回成功')
this.fileTextList = []
this.$router.push('/processCenter') this.$router.push('/processCenter')
this.backLoading = false
} }
}) })
} else { } else {
this.$message.warning('请输入反馈意见') this.$message.warning('请输入反馈意见')
this.backLoading = false
} }
}, },
//未整改项抽屉中的查询按钮 //未整改项抽屉中的查询按钮
@@ -114,6 +114,21 @@
</el-table> </el-table>
</div> </div>
</div> </div>
<div>
<el-collapse accordion>
<el-collapse-item title="意见填写">
<div style="margin: 10px 0;">
<el-input
type="textarea"
:rows="3"
resize="none"
placeholder="请输入意见"
v-model="commentText">
</el-input>
</div>
</el-collapse-item>
</el-collapse>
</div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<div class="block" style="padding-top: 20px;"> <div class="block" style="padding-top: 20px;">
<el-timeline> <el-timeline>
@@ -390,6 +405,7 @@ export default {
drawerTitle: "", //drawer标题 drawerTitle: "", //drawer标题
// 查询相关参数 // 查询相关参数
searching: false, searching: false,
commentText:'',
standardSearch: { standardSearch: {
standType: "", standType: "",
standName: "" standName: ""
@@ -101,6 +101,21 @@
</el-table> </el-table>
</div> </div>
</div> </div>
<div>
<el-collapse accordion>
<el-collapse-item title="意见填写">
<div style="margin: 10px 0;">
<el-input
type="textarea"
:rows="3"
resize="none"
placeholder="请输入意见"
v-model="commentText">
</el-input>
</div>
</el-collapse-item>
</el-collapse>
</div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<div class="block" style="padding-top: 20px;"> <div class="block" style="padding-top: 20px;">
<el-timeline> <el-timeline>
@@ -374,6 +389,7 @@ export default {
productData: [], //添加抽屉的数据 productData: [], //添加抽屉的数据
standList: [], //新添加的标准 standList: [], //新添加的标准
modalshowflag: false, // drawer开关 modalshowflag: false, // drawer开关
commentText: '',
drawerTitle: "", //drawer标题 drawerTitle: "", //drawer标题
// 查询相关参数 // 查询相关参数
searching: false, searching: false,
@@ -658,6 +674,7 @@ export default {
this.$message.warning("请选择分发责任人"); this.$message.warning("请选择分发责任人");
} else { } else {
this.isSubmit = true this.isSubmit = true
this.listForm.commentText = this.commentText;
var json = Object.assign(this.listForm, this.roleForm); var json = Object.assign(this.listForm, this.roleForm);
this.$refs["listForm"].validate((valid) => { this.$refs["listForm"].validate((valid) => {
if (valid) { if (valid) {
@@ -336,9 +336,6 @@ export default {
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
this.$message.warning('请填写审批意见')
}else{
this.listForm.commentText = this.commentText this.listForm.commentText = this.commentText
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.isSubmit = true this.isSubmit = true
@@ -356,7 +353,7 @@ export default {
this.isSubmit = false this.isSubmit = false
}, e => { }, e => {
}); });
}
}, },
//标准表格选择框改变 //标准表格选择框改变
selectStandChange(data) { selectStandChange(data) {
@@ -464,4 +461,3 @@ export default {
} }
} }
</style> </style>
@@ -126,6 +126,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 选择责任人--> <!-- 选择责任人-->
<Role-tree <Role-tree
check-box check-box
@@ -246,21 +246,21 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<!-- <div>--> <div>
<!-- <el-collapse accordion>--> <el-collapse accordion>
<!-- <el-collapse-item title="填写评估反馈">--> <el-collapse-item title="意见填写">
<!-- <div style="margin: 10px 0;">--> <div style="margin: 10px 0;">
<!-- <el-input--> <el-input
<!-- type="textarea"--> type="textarea"
<!-- :rows="3"--> :rows="3"
<!-- resize="none"--> resize="none"
<!-- placeholder="请输入您的评估分析"--> placeholder="请输入意见"
<!-- v-model="commentText">--> v-model="commentText">
<!-- </el-input>--> </el-input>
<!-- </div>--> </div>
<!-- </el-collapse-item>--> </el-collapse-item>
<!-- </el-collapse>--> </el-collapse>
<!-- </div>--> </div>
</div> </div>
<div class="content" v-show="active === '3'"> <div class="content" v-show="active === '3'">
@@ -616,5 +616,3 @@ export default {
} }
} }
</style> </style>
@@ -447,9 +447,6 @@ export default {
}, },
//驳回事件 //驳回事件
beforeBack () { beforeBack () {
if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
this.$message.warning('请填写审批意见')
} else {
this.listForm.applyUpdUserId = this.dataList[0].distributePersonId this.listForm.applyUpdUserId = this.dataList[0].distributePersonId
this.listForm.commentText = this.commentText; this.listForm.commentText = this.commentText;
this.listForm.dataList = this.dataList this.listForm.dataList = this.dataList
@@ -468,17 +465,13 @@ export default {
} }
}, e => { }, e => {
}); });
}
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
this.$message.warning('请填写审批意见')
}else {
this.listForm.applyUpdUserId = this.dataList[0].distributePersonId this.listForm.applyUpdUserId = this.dataList[0].distributePersonId
this.listForm.commentText = this.commentText;
this.listForm.dataList = this.dataList this.listForm.dataList = this.dataList
this.listForm.fenFlag = '2' this.listForm.fenFlag = '2'
this.listForm.commentText = this.commentText;
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.isSubmit = true this.isSubmit = true
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
@@ -495,7 +488,7 @@ export default {
this.isSubmit = false this.isSubmit = false
}, e => { }, e => {
}); });
}
}, },
//标准表格选择框改变 //标准表格选择框改变
selectStandChange(data) { selectStandChange(data) {
@@ -602,6 +595,4 @@ export default {
margin-top: 10px; margin-top: 10px;
} }
} }
</style> </style>>
@@ -452,9 +452,6 @@ export default {
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
this.$message.warning('请填写审批意见')
} else {
this.isSubmit = true this.isSubmit = true
this.listForm.prcCreateUser = this.$store.getters.userInfo.userId; this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId; this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId;
@@ -480,7 +477,7 @@ export default {
}, e => { }, e => {
}); });
}
}, },
//标准表格选择框改变 //标准表格选择框改变
selectStandChange(data) { selectStandChange(data) {
@@ -588,5 +585,3 @@ export default {
} }
} }
</style> </style>
@@ -451,9 +451,6 @@ export default {
}, },
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
if(this.commentText === null || this.commentText === undefined || this.commentText === ''){
this.$message.warning('请填写审批意见')
} else {
this.listForm.prcCreateUser = this.$store.getters.userInfo.userId; this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId; this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId;
this.listForm.prcCreateUserName = this.$store.getters.userInfo.account; this.listForm.prcCreateUserName = this.$store.getters.userInfo.account;
@@ -479,7 +476,6 @@ export default {
}, e => { }, e => {
}); });
}
}, },
//标准表格选择框改变 //标准表格选择框改变
selectStandChange(data) { selectStandChange(data) {
@@ -514,7 +510,6 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/styles/style'; @import '~@/assets/styles/style';
.xmpg-step7 { .xmpg-step7 {
/deep/ .el-drawer__container { /deep/ .el-drawer__container {
.prc-content-border { .prc-content-border {
@@ -87,22 +87,22 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrqgj" prop="xcxssrq"
width="190px" width="190px"
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.xcxssrqgj ? $moment(scope.row.xcxssrqgj).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.xcxssrq ? $moment(scope.row.xcxssrq).format("YYYY-MM-DD") : "" }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="zccssrqgj" prop="zccssrq"
align="center" align="center"
sortable sortable
width="190px" width="190px"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.zccssrqgj ? $moment(scope.row.zccssrqgj).format("YYYY-MM-DD") : "" }}</span> <span>{{ scope.row.zccssrq ? $moment(scope.row.zccssrq).format("YYYY-MM-DD") : "" }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -422,7 +422,6 @@ export default {
queryTaskFirst({ queryTaskFirst({
bpnId: this.$route.query.bpnId bpnId: this.$route.query.bpnId
}).then(res => { }).then(res => {
console.log(res.mes);
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.dataList = mes.form.dataList;
@@ -547,6 +546,7 @@ export default {
if (valid) { if (valid) {
this.$refs['roleForm'].validate((valid) => { this.$refs['roleForm'].validate((valid) => {
if (valid) { if (valid) {
this.isSubmit = true
this.$http.get("lawss/activiti/startProcess", { type: "6" }, { this.$http.get("lawss/activiti/startProcess", { type: "6" }, {
_this: this _this: this
}, res => { }, res => {
@@ -562,6 +562,7 @@ export default {
this.$message.success(res.message); this.$message.success(res.message);
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false
}); });
} }
}); });
@@ -526,7 +526,7 @@ export default {
_formData.append("createUserName", this.$store.getters.userInfo.userName); _formData.append("createUserName", this.$store.getters.userInfo.userName);
_formData.append("prcType", "6"); _formData.append("prcType", "6");
_formData.append("json", JSON.stringify({ _formData.append("json", JSON.stringify({
form: this.form, form: this.listForm,
roleForm: this.roleForm, roleForm: this.roleForm,
commentText: this.commentText commentText: this.commentText
})); }));
@@ -2,7 +2,7 @@
<div class="xmpg2-step12"> <div class="xmpg2-step12">
<ProcessHeader toggle> <ProcessHeader toggle>
<template slot="proName">项目合规评估流程-项目</template> <template slot="proName">项目合规评估流程-项目</template>
<template slot="proNode">责任人审核</template> <template slot="proNode">标准法规部部长审核</template>
</ProcessHeader> </ProcessHeader>
<div class="headerTabs"> <div class="headerTabs">
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div> <div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
@@ -185,6 +185,9 @@
prop="standName" prop="standName"
label="标准名称" label="标准名称"
> >
<template slot-scope="scope">
<span @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
@@ -273,12 +276,18 @@
label="标准名称" label="标准名称"
width="260px" width="260px"
> >
<template slot-scope="scope">
<a @click="handlePreview(scope.row)">{{ scope.row.standName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standEnName" prop="standEnName"
align="center" align="center"
width="180px" width="180px"
label="英文名称"> label="英文名称">
<template slot-scope="scope">
<a @click="handlePreview(scope.row)">{{ scope.row.standEnName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="typeApplicable" prop="typeApplicable"
@@ -170,6 +170,9 @@
prop="standName" prop="standName"
label="标准名称" label="标准名称"
> >
<template slot-scope="scope">
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
@@ -257,12 +260,18 @@
label="标准名称" label="标准名称"
width="260px" width="260px"
> >
<template slot-scope="scope">
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standEnName" prop="standEnName"
align="center" align="center"
width="180px" width="180px"
label="英文名称"> label="英文名称">
<template slot-scope="scope">
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standEnName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="typeApplicable" prop="typeApplicable"
@@ -170,6 +170,9 @@
prop="standName" prop="standName"
label="标准名称" label="标准名称"
> >
<template slot-scope="scope">
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="issueTime" prop="issueTime"
@@ -257,12 +260,18 @@
label="标准名称" label="标准名称"
width="260px" width="260px"
> >
<template slot-scope="scope">
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="standEnName" prop="standEnName"
align="center" align="center"
width="180px" width="180px"
label="英文名称"> label="英文名称">
<template slot-scope="scope">
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standEnName }}</a>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="typeApplicable" prop="typeApplicable"
+65 -139
View File
@@ -27,10 +27,8 @@
{{ $t("m.clearQuery") }} {{ $t("m.clearQuery") }}
</el-button> </el-button>
</div> </div>
<el-button type="primary" @click="exportSearchResult" v-if="!kindtext" style="position: absolute;right:0px;width: 98px;background:#3391CE <!-- <el-button type="primary" @click="exportSearchResult" v-if="!kindtext" style="position: absolute;right:0px;width: 98px;background:#3391CE;border-color:#3391CE;">{{ $t("m.export") }}-->
;border-color:#3391CE <!-- </el-button>-->
;">{{ $t("m.export") }}
</el-button>
</div> </div>
<div class="search-condition showWidth" v-if="kindtext"> <div class="search-condition showWidth" v-if="kindtext">
<div class="search-content"> <div class="search-content">
@@ -935,60 +933,36 @@
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="selectIndex !== 'DYNAMIC_INFORMATION' && selectIndex !== 'items'"> <div v-if="selectIndex !== 'DYNAMIC_INFORMATION' && selectIndex !== 'items'">
<div v-if="scope.row.collectId"> <div v-if="scope.row.collectId">
<el-button class="opera-btn" type="primary" size="mini"
@click="judgeRolePermiOnSar(scope.row, 1)">{{ $t("m.see") }}
</el-button>
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown trigger="click" @command="handleCommand">
<el-button type="primary" class="opera-btn" style="margin-left: 10px" size="mini"> <i class="iconfont">&#xe61e;</i>
{{ $t("m.more") }}
</el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="beforeHandleCommand('a',scope.row)" <el-dropdown-item :command="beforeHandleCommand('l',scope.row)">查看</el-dropdown-item>
v-btn-permission="'JEFQ4RPSKZ44WZW8EUSU'">{{ $t("m.cancelCollection") }} <el-dropdown-item :command="beforeHandleCommand('a',scope.row)">取消收藏</el-dropdown-item>
</el-dropdown-item> <el-dropdown-item :command="beforeHandleCommand('b',scope.row)">分享</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand('b',scope.row)"
v-btn-permission="'U43YC8BE2U5VHE9KJN87'">{{ $t("m.share") }}
</el-dropdown-item>
<!-- <el-dropdown-item :command="beforeHandleCommand('c',scope.row)">{{ $t('m.processes') }}</el-dropdown-item>-->
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
<div v-else> <div v-else>
<el-button class="opera-btn" type="primary" size="mini"
@click="judgeRolePermiOnSar(scope.row, 1)">{{ $t("m.see") }}
</el-button>
<el-dropdown trigger="click" @command="handleCommand"> <el-dropdown trigger="click" @command="handleCommand">
<el-button type="primary" class="opera-btn" style="margin-left: 10px" size="mini"> <i class="iconfont">&#xe61e;</i>
{{ $t("m.more") }}
</el-button>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="beforeHandleCommand('d',scope.row)" <el-dropdown-item :command="beforeHandleCommand('l',scope.row)">查看</el-dropdown-item>
v-btn-permission="'JEFQ4RPSKZ44WZW8EUSU'">{{ $t("m.collection") }} <el-dropdown-item v-btn-permission="'FB3R3TVALD'" :command="beforeHandleCommand('d',scope.row)">收藏</el-dropdown-item>
</el-dropdown-item> <!-- <el-dropdown-item :command="beforeHandleCommand('b',scope.row)">分享</el-dropdown-item>-->
<el-dropdown-item :command="beforeHandleCommand('b',scope.row)"
v-btn-permission="'U43YC8BE2U5VHE9KJN87'">{{ $t("m.share") }}
</el-dropdown-item>
<!-- <el-dropdown-item :command="beforeHandleCommand('c',scope.row)">{{ $t('m.processes') }}</el-dropdown-item>-->
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
</div> </div>
<div v-else-if="selectIndex === 'items'"> <div v-else-if="selectIndex === 'items'">
<!-- <el-button size="mini" @click="judgeRolePermiOnSar(scope.row, 1)">查看</el-button>--> <!-- <el-button size="mini" @click="judgeRolePermiOnSar(scope.row, 1)">查看</el-button>-->
<el-button class="opera-btn" size="mini" @click="itemsDetails(scope.row)">{{ $t("m.see") }} <el-button size="mini" @click="itemsDetails(scope.row)">查看</el-button>
</el-button>
</div> </div>
<div v-else class="celect-btn-box"> <div v-else>
<el-button class="opera-btn" size="mini" type="primary" v-if="scope.row.collectId" <el-button size="mini" type="primary" v-if="scope.row.collectId" @click="clickCollection(scope.row)">取消收藏</el-button>
@click="clickCollection(scope.row)" v-btn-permission="'JEFQ4RPSKZ44WZW8EUSU'"> <el-button size="mini" type="primary" v-else @click="clickCollection(scope.row)">收藏</el-button>
{{ $t("m.cancelCollection") }} <el-button sizi="mini" @click="clickShare(scope.row)">分享</el-button>
</el-button>
<el-button class="opera-btn" size="mini" type="primary" v-else @click="clickCollection(scope.row)"
v-btn-permission="'JEFQ4RPSKZ44WZW8EUSU'">{{ $t("m.collection") }}
</el-button>
<el-button class="opera-btn" sizi="mini" @click="clickShare(scope.row)"
v-btn-permission="'U43YC8BE2U5VHE9KJN87'">{{ $t("m.share") }}
</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -1315,10 +1289,29 @@ export default {
dropdownItemsCollect: [{ "val": "取消收藏" }, { "val": "分享" }, { "val": "流程" }], dropdownItemsCollect: [{ "val": "取消收藏" }, { "val": "分享" }, { "val": "流程" }],
judgeRoleFlag: false, judgeRoleFlag: false,
judgeRoleMessage: "", judgeRoleMessage: "",
exportSearchInfo: {} exportSearchInfo: {},
twoOptions: [],
formFieldListStandData: []
}; };
}, },
methods: { methods: {
getAddFormFieldList (isEdit) {
this.$http.get('lawss/sarStandAttrDetails/list', {}, {
_this: this
},
res => {
if (res.ok) {
const { data = {} } = res
// 国内外标准
const inlandList = data['INLAND_STAND'] || []
const foreignList = data['FOREIGN_STAND'] || []
const foreignFilterList = foreignList.filter ( item => item.attrField === 'GXHBQ' || item.attrField === 'ZBJBD' || item.attrField === 'KWJ' || item.attrField === 'TXLB');
console.log(foreignFilterList)
this.formFieldListStandData = this.formFieldListStandData.concat(inlandList).concat(foreignFilterList);
console.log(this.formFieldListStandData,'-----------------------------------1')
}
}, e => {})
},
choiceZRR1 (type, title, id) { choiceZRR1 (type, title, id) {
this.drawerTitle = title this.drawerTitle = title
this.modalShowFlag1 = true this.modalShowFlag1 = true
@@ -1497,20 +1490,20 @@ export default {
} }
} }
}, // 点击收藏/取消收藏事件 }, // 点击收藏/取消收藏事件
handleCommand(command) { handleCommand (command) {
switch (command.command) { switch (command.command) {
case "d": case 'd':
this.judgeRolePermiOnSar(command.item, 2); // 收藏 this.judgeRolePermiOnSar(command.item, 2) // 收藏
break; break
case "a": case 'a':
this.judgeRolePermiOnSar(command.item, 3); // 取消收藏 this.judgeRolePermiOnSar(command.item, 3) // 取消收藏
break; break
case "b": case 'b':
this.judgeRolePermiOnSar(command.item, 4); // 分享 this.judgeRolePermiOnSar(command.item, 4) // 分享
break; break
case "c": case 'l':
this.judgeRolePermiOnSar(command.item, 6); // 流程 this.judgeRolePermiOnSar(command.item, 1) // 查看
break; break
} }
}, // 下拉菜单点击事件 }, // 下拉菜单点击事件
beforeHandleCommand(command, item) { beforeHandleCommand(command, item) {
@@ -1658,14 +1651,6 @@ export default {
pagetype = "BUSINESS_STAND"; pagetype = "BUSINESS_STAND";
} }
} }
this.$http.get("lawss/sarMenu/judgeSarMenuByRole", {
sarId: item.id,
sarType: pagetype
}, {
_this: this
}, res => {
if (res.ok) {
this.judgeRoleFlag = true;
if (type === 1) { if (type === 1) {
this.detailsStandardLaws(item); this.detailsStandardLaws(item);
} else if (type === 2) { } else if (type === 2) {
@@ -1679,16 +1664,6 @@ export default {
} else if (type === 6) { } else if (type === 6) {
this.goProcess(item); this.goProcess(item);
} }
} else {
this.judgeRoleFlag = false;
this.$message({
message: res.message,
type: "error"
});
}
}, e => {
this.judgeRoleFlag = false;
});
} }
}, },
showDetailsByRole(item) { showDetailsByRole(item) {
@@ -1722,64 +1697,20 @@ export default {
this.standForm.page = this.page; this.standForm.page = this.page;
this.standForm.pageSize = this.$store.getters.userInfo.configContent; this.standForm.pageSize = this.$store.getters.userInfo.configContent;
let nowStandForm = JSON.parse(JSON.stringify(this.standForm)); let nowStandForm = JSON.parse(JSON.stringify(this.standForm));
if (this.standForm.issueTime != null && this.standForm.issueTime !== "") { // 处理动态表单的时间和下拉框格式
nowStandForm.issueTime = this.$dateFormat(this.standForm.issueTime, "yyyy-MM-dd hh:mm:ss"); const formFieldList = this.formFieldListStandData
} const sarStandAttrObj = {}
if (this.standForm.issueTimeSt != null && this.standForm.issueTimeSt !== "") { formFieldList.forEach((item) => {
nowStandForm.issueTimeSt = this.$dateFormat(this.standForm.issueTimeSt, "yyyy-MM-dd hh:mm:ss"); const attrField = item.attrField.toLowerCase();
} const value = nowStandForm[attrField]
if (this.standForm.issueTimeEd != null && this.standForm.issueTimeEd !== "") { // 时间格式处理
nowStandForm.issueTimeEd = this.$dateFormat(this.standForm.issueTimeEd, "yyyy-MM-dd hh:mm:ss"); if (item.attrType === 'DATE_PICKER' && value) {
} nowStandForm[item.attrField] = this.standForm[attrField]
if (this.standForm.putTime != null && this.standForm.putTime !== "") {
nowStandForm.putTime = this.$dateFormat(this.standForm.putTime, "yyyy-MM-dd hh:mm:ss");
}
if (this.standForm.putTimeSt != null && this.standForm.putTimeSt !== "") {
nowStandForm.putTimeSt = this.$dateFormat(this.standForm.putTimeSt, "yyyy-MM-dd hh:mm:ss");
}
if (this.standForm.putTimeEd != null && this.standForm.putTimeEd !== "") {
nowStandForm.putTimeEd = this.$dateFormat(this.standForm.putTimeEd, "yyyy-MM-dd hh:mm:ss");
}
if (this.standForm.newproductPutTime != null && this.standForm.newproductPutTime !== "") {
nowStandForm.newproductPutTime = this.$dateFormat(this.standForm.newproductPutTime, "yyyy-MM-dd hh:mm:ss");
}
if (this.standForm.registerPutTime != null && this.standForm.registerPutTime !== "") {
nowStandForm.registerPutTime = this.$dateFormat(this.standForm.registerPutTime, "yyyy-MM-dd hh:mm:ss");
}
if (this.standForm.productPutTime != null && this.standForm.productPutTime !== "") {
nowStandForm.productPutTime = this.$dateFormat(this.standForm.productPutTime, "yyyy-MM-dd hh:mm:ss");
}
if (this.standForm.productPutTimeSt != null && this.standForm.productPutTimeSt !== "") {
nowStandForm.productPutTimeSt = this.$dateFormat(this.standForm.productPutTimeSt, "yyyy-MM-dd hh:mm:ss");
} else {
nowStandForm.productPutTimeSt = "";
}
if (this.standForm.productPutTimeEd != null && this.standForm.productPutTimeEd !== "") {
nowStandForm.productPutTimeEd = this.$dateFormat(this.standForm.productPutTimeEd, "yyyy-MM-dd hh:mm:ss");
} else {
nowStandForm.productPutTimeEd = "";
}
if (this.standForm.newcarPutTime != null && this.standForm.newcarPutTime !== "") {
nowStandForm.newcarPutTime = this.$dateFormat(this.standForm.newcarPutTime, "yyyy-MM-dd hh:mm:ss");
}
if (this.standForm.newcarPutTimeSt != null && this.standForm.newcarPutTimeSt !== "") {
nowStandForm.newcarPutTimeSt = this.$dateFormat(this.standForm.newcarPutTimeSt, "yyyy-MM-dd hh:mm:ss");
} else {
nowStandForm.newcarPutTimeSt = "";
}
if (this.standForm.newcarPutTimeEd != null && this.standForm.newcarPutTimeEd !== "") {
nowStandForm.newcarPutTimeEd = this.$dateFormat(this.standForm.newcarPutTimeEd, "yyyy-MM-dd hh:mm:ss");
} else {
nowStandForm.newcarPutTimeEd = "";
}
if (this.standForm.firstPutTime != null && this.standForm.firstPutTime !== "") {
nowStandForm.firstPutTime = this.$dateFormat(this.standForm.firstPutTime, "yyyy-MM-dd hh:mm:ss");
}
if (this.standForm.putYear != null && this.standForm.putYear !== "") {
nowStandForm.putYear = this.$dateFormat(this.standForm.putYear, "yyyy");
} }
sarStandAttrObj[item.attrField] = nowStandForm[attrField]
})
nowStandForm['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'")
this.exportSearchInfo = nowStandForm; this.exportSearchInfo = nowStandForm;
nowStandForm['sarStandAttrEOStr'] = JSON.stringify(nowStandForm).replace(/"/g, "'")
this.$http.post("search/searchCenter/searchSarBykey", nowStandForm, { this.$http.post("search/searchCenter/searchSarBykey", nowStandForm, {
_this: this, _this: this,
loading: "resultLoading" loading: "resultLoading"
@@ -1920,20 +1851,13 @@ export default {
let routername = ""; let routername = "";
let pagetype = ""; let pagetype = "";
if (item.type === "stand") { if (item.type === "stand") {
if (this.$hasPermission("CFEZ3VP7EA95CTRBH3JB") || this.$hasPermission("R5DNG6EZC66CNFC4RHPH")) { if (item.standType === "INLAND") {
if (item.stand_type === "INLAND") {
routername = "OtherStandardDetails"; routername = "OtherStandardDetails";
pagetype = "INLAND_STAND"; pagetype = "INLAND_STAND";
} else { } else {
routername = "OtherForeignDetails"; routername = "OtherForeignDetails";
pagetype = "FOREIGN_STAND"; pagetype = "FOREIGN_STAND";
} }
} else {
this.$message({
message: "无权访问",
type: "warning"
});
}
} else if (item.type === "laws") { } else if (item.type === "laws") {
if (this.$hasPermission("9P2UTSAHZ3AHKDGAEY6V")) { if (this.$hasPermission("9P2UTSAHZ3AHKDGAEY6V")) {
routername = "OtherLawsDetails"; routername = "OtherLawsDetails";
@@ -2349,6 +2273,7 @@ export default {
computed: { computed: {
// 条件按钮提示 // 条件按钮提示
toggleConditionTips() { toggleConditionTips() {
this.standForm.selectValue = ''
return this.kindtext ? "收起条件" : "展开条件"; return this.kindtext ? "收起条件" : "展开条件";
} }
}, },
@@ -2408,6 +2333,7 @@ export default {
// 加载表格 // 加载表格
this.searchSarBykey(); this.searchSarBykey();
this.showBuyRole(); this.showBuyRole();
this.getAddFormFieldList();
// 组织结构 // 组织结构
this.getOrgTreeSource(); this.getOrgTreeSource();
// this.selectBussRoleMsg(); // this.selectBussRoleMsg();
@@ -212,7 +212,7 @@ export default {
//查询选项 //查询选项
queryOptions() { queryOptions() {
let _this = this; let _this = this;
this.$http.post("search/searchCenter/getMenu", {}, { this.$http.post("search/getMenu", {}, {
_this: this _this: this
}, res => { }, res => {
_this.searchData = [ _this.searchData = [
+1 -1
View File
@@ -6,7 +6,7 @@
// 服务器地址 // 服务器地址
// const devIp = '10.96.10.171' // const devIp = '10.96.10.171'
// const devInterfacePORT = '9999' // const devInterfacePORT = '9999'
const devIp = '10.96.170.156' const devIp = '192.168.0.104'
const devInterfacePORT = '9999' const devInterfacePORT = '9999'
// 云端端口号 // 云端端口号
const DEV_CLOUD_RES_INTERFACE_PORT = '7777' const DEV_CLOUD_RES_INTERFACE_PORT = '7777'